X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=blobdiff_plain;f=maintenance%2FcleanupRemovedModules.php;h=2085da94d1e8bcd05c70dcb958d845951ada3eb0;hb=46f3a2c79c76c20568a50323d7ec226ba3053434;hp=ee9b319164762ba5dfe8173000bbb4cc4a0e8e1a;hpb=9015102f59f70f363e0bfc50348be75787815417;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php index ee9b319164..2085da94d1 100644 --- a/maintenance/cleanupRemovedModules.php +++ b/maintenance/cleanupRemovedModules.php @@ -1,7 +1,6 @@ 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 ) ); @@ -86,4 +91,4 @@ class CleanupRemovedModules extends Maintenance { } $maintClass = "CleanupRemovedModules"; -require_once( DO_MAINTENANCE ); +require_once( RUN_MAINTENANCE_IF_MAIN );