jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/404271 )
Change subject: Use the $context object passed to the ArticleFromTitle hook
handler to avoid fatals
......................................................................
Use the $context object passed to the ArticleFromTitle hook handler to avoid
fatals
Follow-up to I3501ebb7a562b87c12f3ad5c4a87883ed6c04701
Change-Id: I59d7676a7cb03518c79db26dafdc2e19e8f9facb
---
M UserProfile/UserProfileHooks.php
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
SamanthaNguyen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/UserProfile/UserProfileHooks.php b/UserProfile/UserProfileHooks.php
index 173983b..1dc6f26 100644
--- a/UserProfile/UserProfileHooks.php
+++ b/UserProfile/UserProfileHooks.php
@@ -43,10 +43,9 @@
* @param WikiPage|Article &$article
* @return bool
*/
- public static function onArticleFromTitle( &$title, &$article ) {
+ public static function onArticleFromTitle( &$title, &$article, $context
) {
global $wgHooks, $wgUserPageChoice;
- $context = $article->getContext();
$out = $context->getOutput();
$request = $context->getRequest();
--
To view, visit https://gerrit.wikimedia.org/r/404271
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I59d7676a7cb03518c79db26dafdc2e19e8f9facb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
Gerrit-Reviewer: Lewis Cawte <[email protected]>
Gerrit-Reviewer: SamanthaNguyen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits