r43981 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43980‎ | r43981 | r43982 >
Date:18:14, 26 November 2008
Author:aaron
Status:ok
Tags:
Comment:
Check $wgUseNPPatrol too
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -439,13 +439,13 @@
440440 #########
441441
442442 function efLoadFlaggedRevs() {
443 - global $wgUseRCPatrol, $wgFlaggedRevsNamespaces;
 443+ global $wgUseRCPatrol, $wgUseNPPatrol, $wgFlaggedRevsNamespaces;
444444 # Use RC Patrolling to check for vandalism
445445 # When revisions are flagged, they count as patrolled
446446 if( !empty($wgFlaggedRevsNamespaces) ) {
447447 # If patrolling is already on, then we know that it
448448 # was intended to have all namespaces patrollable.
449 - if( $wgUseRCPatrol ) {
 449+ if( $wgUseRCPatrol || $wgUseNPPatrol ) {
450450 global $wgCanonicalNamespaceNames;
451451 $wgFlaggedRevsPatrolNamespaces = array_keys( $wgCanonicalNamespaceNames );
452452 }

Status & tagging log