r19351 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r19350‎ | r19351 | r19352 >
Date:21:24, 16 January 2007
Author:robchurch
Status:old
Tags:
Comment:
Don't do auto-patrolling if patrolling is switched off
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1346,7 +1346,7 @@
13471347 $revisionId );
13481348
13491349 # Mark as patrolled if the user can do so
1350 - if( $wgUser->isAllowed( 'autopatrol' ) ) {
 1350+ if( $GLOBALS['wgUseRCPatrol'] && $wgUser->isAllowed( 'autopatrol' ) ) {
13511351 RecentChange::markPatrolled( $rcid );
13521352 PatrolLog::record( $rcid, true );
13531353 }
@@ -1408,7 +1408,7 @@
14091409 $rcid = RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary, $bot,
14101410 '', strlen( $text ), $revisionId );
14111411 # Mark as patrolled if the user can
1412 - if( $wgUser->isAllowed( 'autopatrol' ) ) {
 1412+ if( $GLOBALS['wgUseRCPatrol'] && $wgUser->isAllowed( 'autopatrol' ) ) {
14131413 RecentChange::markPatrolled( $rcid );
14141414 PatrolLog::record( $rcid, true );
14151415 }