X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeModuleDeps.php;h=3b25629318edf87a5d9f0de2e9b51e8633641f3e;hb=1fd7829f2fb1206d72928f865e140029b1cb04cd;hp=3088baad096059cc9457b557181347136a3f6861;hpb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeModuleDeps.php b/maintenance/purgeModuleDeps.php index 3088baad09..3b25629318 100644 --- a/maintenance/purgeModuleDeps.php +++ b/maintenance/purgeModuleDeps.php @@ -22,7 +22,7 @@ * @author Timo Tijhof */ -use MediaWiki\MediaWikiServices; +use Wikimedia\Rdbms\IDatabase; require_once __DIR__ . '/Maintenance.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;