r38870 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38869‎ | r38870 | r38871 >
Date:09:38, 8 August 2008
Author:aaron
Status:old
Tags:
Comment:
remove addLocalizedSpecialPageName()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -2276,22 +2276,6 @@
22772277 return true;
22782278 }
22792279
2280 - public static function addLocalizedSpecialPageNames( &$extendedSpecialPageAliases, $code ) {
2281 - wfLoadExtensionMessages( 'FlaggedRevsAliases' );
2282 - # The localized title of the special page is among the messages of the extension:
2283 - $specialPages = array( 'QualityOversight', 'ProblemPages', 'UnreviewedPages',
2284 - 'OldReviewedPages', 'StablePages', 'StableVersions', 'ReviewedPages' );
2285 - foreach( $specialPages as $specialPage ) {
2286 - $text = wfMsgExt( strtolower( "$specialPage-alias" ), array( 'escape', 'language' => $code ) );
2287 - $title = Title::newFromText($text);
2288 - if( $title ) {
2289 - $extendedSpecialPageAliases[$specialPage][] = $title->getDBKey();
2290 - }
2291 - $extendedSpecialPageAliases[$specialPage][] = $specialPage;
2292 - }
2293 - return true;
2294 - }
2295 -
22962280 public static function isFileCacheable( $article ) {
22972281 $fa = FlaggedArticle::getInstance( $article );
22982282 # If the stable is the default, and we are viewing it...cache it!

Status & tagging log