Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/96160
Change subject: Remove ugly $wgTitle comments
......................................................................
Remove ugly $wgTitle comments
Change-Id: I5013fd884bb5cf8c17d7e4b08a78ecdf5ae74b3b
---
M frontend/FlaggablePageView.php
M frontend/FlaggedRevsUI.hooks.php
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs
refs/changes/60/96160/1
diff --git a/frontend/FlaggablePageView.php b/frontend/FlaggablePageView.php
index 83a2b6a..1d58677 100644
--- a/frontend/FlaggablePageView.php
+++ b/frontend/FlaggablePageView.php
@@ -56,7 +56,7 @@
}
/**
- * Get the FlaggableWikiPage instance associated with $wgTitle,
+ * Get the FlaggableWikiPage instance associated with the current page
title,
* or false if there isn't such a title
* @return FlaggableWikiPage|null
*/
diff --git a/frontend/FlaggedRevsUI.hooks.php b/frontend/FlaggedRevsUI.hooks.php
index 83935f2..e940502 100644
--- a/frontend/FlaggedRevsUI.hooks.php
+++ b/frontend/FlaggedRevsUI.hooks.php
@@ -199,7 +199,7 @@
Title $title, WebRequest $request, &$ignoreRedirect, &$target,
Page &$article
) {
global $wgMemc, $wgParserCacheExpireTime;
- $fa = FlaggableWikiPage::getTitleInstance( $title ); // on
$wgTitle
+ $fa = FlaggableWikiPage::getTitleInstance( $title );
if ( !$fa->isReviewable() ) {
return true; // nothing to do
}
@@ -235,7 +235,7 @@
# on the draft as normal, avoiding any page text hits.
$clearEnvironment = $article->isRedirect();
}
- # Environment (e.g. $wgTitle) will change in
MediaWiki::initializeArticle
+ # Environment will change in MediaWiki::initializeArticle
if ( $clearEnvironment ) $view->clear();
return true;
--
To view, visit https://gerrit.wikimedia.org/r/96160
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5013fd884bb5cf8c17d7e4b08a78ecdf5ae74b3b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits