X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupEmptyCategories.php;h=786c20a59e76f0e7421b39f1f0df65e59a2fd30a;hb=5db74eb56e425ba803b2cc936fbe3e5cc219b482;hp=b8a246eb222576f71aa702a10afdb16842e04736;hpb=500889f19005b4aed93c5b6eaafd35689fce7dcd;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupEmptyCategories.php b/maintenance/cleanupEmptyCategories.php index b8a246eb22..786c20a59e 100644 --- a/maintenance/cleanupEmptyCategories.php +++ b/maintenance/cleanupEmptyCategories.php @@ -109,7 +109,7 @@ TEXT __METHOD__, [ 'ORDER BY' => 'page_title', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ], [ 'category' => [ 'LEFT JOIN', 'page_title = cat_title' ], @@ -147,7 +147,6 @@ TEXT } else { $where = []; } - $i = 0; $this->output( "Removing empty categories without description pages...\n" ); while ( true ) { @@ -162,7 +161,7 @@ TEXT __METHOD__, [ 'ORDER BY' => 'cat_title', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ], [ 'page' => [ 'LEFT JOIN', [ @@ -200,5 +199,5 @@ TEXT } } -$maintClass = 'CleanupEmptyCategories'; +$maintClass = CleanupEmptyCategories::class; require_once RUN_MAINTENANCE_IF_MAIN;