From: Alexandre Emsenhuber Date: Sun, 9 Aug 2009 12:17:03 +0000 (+0000) Subject: * set $wgUseRootUser in __construct() so that it's available in config files X-Git-Tag: 1.31.0-rc.0~40408 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f0eff7170f22ff5b15e602df90318a4ff5cbdc23;p=lhc%2Fweb%2Fwiklou.git * set $wgUseRootUser in __construct() so that it's available in config files * added missing global declaration for $slaveIndexes in FixSlaveDesync::execute() --- diff --git a/maintenance/fixSlaveDesync.php b/maintenance/fixSlaveDesync.php index 57999a5a57..47fb2c47ee 100644 --- a/maintenance/fixSlaveDesync.php +++ b/maintenance/fixSlaveDesync.php @@ -22,14 +22,17 @@ require_once( dirname(__FILE__) . '/Maintenance.php' ); class FixSlaveDesync extends Maintenance { public function __construct() { + global $wgUseRootUser; + $wgUseRootUser = true; + parent::__construct(); $this->mDescription = ""; } public function execute() { - global $wgUseRootUser, $wgDBservers; - $wgUseRootUser = true; + global $slaveIndexes, $wgDBservers; + $slaveIndexes = array(); for ( $i = 1; $i < count( $wgDBservers ); $i++ ) {