r63385 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63384‎ | r63385 | r63386 >
Date:12:16, 8 March 2010
Author:aaron
Status:ok
Tags:
Comment:
* Don't show ReviewedPages if it's a nearly identical subset of StablePages
* Fixed doc typo
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -211,7 +211,7 @@
212212 }
213213
214214 /**
215 - * Does FLaggedRevs only show for pages that have been set to do so?
 215+ * Does FlaggedRevs only show for pages that have been set to do so?
216216 * @returns bool
217217 */
218218 public static function stableOnlyIfConfigured() {
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -24,7 +24,9 @@
2525 if ( $wgUseTagFilter && ChangeTags::listDefinedTags() ) {
2626 $list['ProblemChanges'] = $wgSpecialPages['ProblemChanges'] = 'ProblemChanges';
2727 }
28 - $list['ReviewedPages'] = $wgSpecialPages['ReviewedPages'] = 'ReviewedPages';
 28+ if( !FlaggedRevs::stableOnlyIfConfigured() ) {
 29+ $list['ReviewedPages'] = $wgSpecialPages['ReviewedPages'] = 'ReviewedPages';
 30+ }
2931 $list['QualityOversight'] = $wgSpecialPages['QualityOversight'] = 'QualityOversight';
3032 $list['ValidationStatistics'] = $wgSpecialPages['ValidationStatistics'] = 'ValidationStatistics';
3133 if ( !$wgFlaggedRevsOverride ) {

Status & tagging log