r87019 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87018‎ | r87019 | r87020 >
Date:17:15, 27 April 2011
Author:ialex
Status:ok
Tags:
Comment:
Use MWNamespace::getValidNamespaces() instead of $wgCanonicalNamespaceNames
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -548,8 +548,8 @@
549549 # If patrolling is already on, then we know that it
550550 # was intended to have all namespaces patrollable.
551551 if ( $wgUseRCPatrol ) {
552 - global $wgFlaggedRevsPatrolNamespaces, $wgCanonicalNamespaceNames;
553 - $wgFlaggedRevsPatrolNamespaces = array_keys( $wgCanonicalNamespaceNames );
 552+ global $wgFlaggedRevsPatrolNamespaces;
 553+ $wgFlaggedRevsPatrolNamespaces = MWNamespace::getValidNamespaces();
554554 }
555555 /* TODO: decouple from rc patrol */
556556 # Check if FlaggedRevs is enabled by default for pages...

Status & tagging log