From 487d9a4ec81149c23da20bffbaa24fe95c2f03c5 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Wed, 12 Jan 2011 19:03:59 +0000 Subject: [PATCH] Per CR on r75575, remove array_keys() as getModuleNames has array_key'd the returned stuffs --- maintenance/cleanupRemovedModules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1