From c7eee34025f7e2c40123125785a2fde666265e02 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 22 May 2007 16:49:40 +0000 Subject: [PATCH] *Check $wgUseRCPatrol to avoid possible expensive query if likely not needed --- maintenance/rebuildrecentchanges.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/rebuildrecentchanges.inc b/maintenance/rebuildrecentchanges.inc index e00c191467..2cad0fea58 100644 --- a/maintenance/rebuildrecentchanges.inc +++ b/maintenance/rebuildrecentchanges.inc @@ -92,7 +92,7 @@ function rebuildRecentChangesTablePass2() function rebuildRecentChangesTablePass3() { - global $wgGroupPermissions; + global $wgGroupPermissions, $wgUseRCPatrol; $dbw = wfGetDB( DB_MASTER ); @@ -103,7 +103,7 @@ function rebuildRecentChangesTablePass3() if( isset( $rights['bot'] ) && $rights['bot'] == true ) { $botgroups[] = "'" . $dbw->strencode( $group ) . "'"; } - if( isset( $rights['autopatrol'] ) && $rights['autopatrol'] == true ) { + if( $wgUseRCPatrol && isset( $rights['autopatrol'] ) && $rights['autopatrol'] == true ) { $autopatrolgroups[] = "'" . $dbw->strencode( $group ) . "'"; } } -- 2.20.1