jenkins-bot has submitted this change and it was merged.

Change subject: Use Title provided by context in MakeGlobalVariablesScript hook
......................................................................


Use Title provided by context in MakeGlobalVariablesScript hook

This should avoid a globaltitlefail

Bug: T78417
Change-Id: I64d91116e405b248cfefdea80f922bc113bbb713
---
M frontend/FlaggedRevsUI.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Chad: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/frontend/FlaggedRevsUI.hooks.php b/frontend/FlaggedRevsUI.hooks.php
index d8be90b..9c5b538 100644
--- a/frontend/FlaggedRevsUI.hooks.php
+++ b/frontend/FlaggedRevsUI.hooks.php
@@ -28,12 +28,12 @@
                return true;
        }
 
-       public static function injectGlobalJSVars( array &$globalVars ) {
+       public static function injectGlobalJSVars( array &$globalVars, 
OutputPage $out ) {
                # Get the review tags on this wiki
                $rTags = FlaggedRevs::getJSTagParams();
                $globalVars['wgFlaggedRevsParams'] = $rTags;
                # Get page-specific meta-data
-               $fa = FlaggablePageView::globalArticleInstance();
+               $fa = FlaggableWikiPage::getTitleInstance( $out->getTitle() );
                # Try to only add to relevant pages
                if ( $fa && $fa->isReviewable() ) {
                        $frev = $fa->getStableRev();

-- 
To view, visit https://gerrit.wikimedia.org/r/179526
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I64d91116e405b248cfefdea80f922bc113bbb713
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to