X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupEmptyCategories.php;h=2d22704de1ad1d0cf695b74813b0fdd5295c6e6e;hb=1ec7e520d388b7cf23e116ac8f7a5a89ab613f9e;hp=b8a246eb222576f71aa702a10afdb16842e04736;hpb=5c1b3768ed022978edb038df14e0f15874eea7b4;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', [