X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpurgeModuleDeps.php;h=3b25629318edf87a5d9f0de2e9b51e8633641f3e;hp=feeeb65b6578f0e35752eed7b2e3c451245e5874;hb=a7064a0883ec6d715c8c8103efe777769a85437d;hpb=d42d6bd868fd5b579080639995e6a7e23851fcf3 diff --git a/maintenance/purgeModuleDeps.php b/maintenance/purgeModuleDeps.php index feeeb65b65..3b25629318 100644 --- a/maintenance/purgeModuleDeps.php +++ b/maintenance/purgeModuleDeps.php @@ -48,7 +48,7 @@ class PurgeModuleDeps extends Maintenance { $modDeps = $dbw->tableName( 'module_deps' ); $i = 1; - foreach ( array_chunk( $rows, $this->mBatchSize ) as $chunk ) { + foreach ( array_chunk( $rows, $this->getBatchSize() ) as $chunk ) { // WHERE ( mod=A AND skin=A ) OR ( mod=A AND skin=B) .. $conds = array_map( function ( stdClass $row ) use ( $dbw ) { return $dbw->makeList( (array)$row, IDatabase::LIST_AND ); @@ -68,5 +68,5 @@ class PurgeModuleDeps extends Maintenance { } } -$maintClass = 'PurgeModuleDeps'; +$maintClass = PurgeModuleDeps::class; require_once RUN_MAINTENANCE_IF_MAIN;