Jack Phoenix has uploaded a new change for review. ( 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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile refs/changes/71/404271/1 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: newchange Gerrit-Change-Id: I59d7676a7cb03518c79db26dafdc2e19e8f9facb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/SocialProfile Gerrit-Branch: master Gerrit-Owner: Jack Phoenix <ash...@uncyclomedia.co> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits