X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcleanupRemovedModules.php;h=a6f10c6b397445a99a162a9f9a0645f096f03b50;hp=83ab35c339e58497a5b9f0a44c30bd2496983756;hb=3d95da4952619f9f773298c4461ccfc646fb18a9;hpb=4feb2bd8d6deaee787f11ae8be41c0393934f636 diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php index 83ab35c339..a6f10c6b39 100644 --- a/maintenance/cleanupRemovedModules.php +++ b/maintenance/cleanupRemovedModules.php @@ -23,6 +23,7 @@ */ use MediaWiki\MediaWikiServices; +use Wikimedia\Rdbms\IDatabase; require_once __DIR__ . '/Maintenance.php'; @@ -56,7 +57,7 @@ class CleanupRemovedModules 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 );