X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupEmptyCategories.php;h=2d22704de1ad1d0cf695b74813b0fdd5295c6e6e;hb=6f6e7d6dfd5b4c5cdb4f1e4f80be77dd8ad71b57;hp=b8a246eb222576f71aa702a10afdb16842e04736;hpb=0a56c6c31780f5c56e5ced67f5b16ea788b55a50;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupEmptyCategories.php b/maintenance/cleanupEmptyCategories.php index b8a246eb22..2d22704de1 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', [