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