From: Sam Reed Date: Wed, 12 Jan 2011 19:03:59 +0000 (+0000) Subject: Per CR on r75575, remove array_keys() as getModuleNames has array_key'd the returned... X-Git-Tag: 1.31.0-rc.0~32595 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=487d9a4ec81149c23da20bffbaa24fe95c2f03c5;p=lhc%2Fweb%2Fwiklou.git Per CR on r75575, remove array_keys() as getModuleNames has array_key'd the returned stuffs --- diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php index ee9b319164..a9ee96816d 100644 --- a/maintenance/cleanupRemovedModules.php +++ b/maintenance/cleanupRemovedModules.php @@ -37,7 +37,7 @@ class CleanupRemovedModules extends Maintenance { public function execute() { $dbw = wfGetDB( DB_MASTER ); $rl = new ResourceLoader(); - $moduleNames = array_keys( $rl->getModuleNames() ); + $moduleNames = $rl->getModuleNames(); $moduleList = implode( ', ', array_map( array( $dbw, 'addQuotes' ), $moduleNames ) ); $limit = max( 1, intval( $this->getOption( 'batchsize', 500 ) ) ); $maxlag = intval( $this->getOption( 'max-slave-lag', 5 ) );