Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/179526
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(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs
refs/changes/26/179526/1
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: newchange
Gerrit-Change-Id: I64d91116e405b248cfefdea80f922bc113bbb713
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits