From: Aaron Schulz Date: Tue, 22 May 2007 16:49:40 +0000 (+0000) Subject: *Check $wgUseRCPatrol to avoid possible expensive query if likely not needed X-Git-Tag: 1.31.0-rc.0~52823 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=c7eee34025f7e2c40123125785a2fde666265e02;p=lhc%2Fweb%2Fwiklou.git *Check $wgUseRCPatrol to avoid possible expensive query if likely not needed --- 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 ) . "'"; } }