X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupEmptyCategories.php;h=922b32e50f0e9aacc4ca78ddd768eccc53473405;hb=a354710aff673a54e38aa7cfd9c4b55a1d7e3943;hp=8672223819ab507301c86eb0118b422541633f7b;hpb=9964ca1a390c446397dcd466916ffed356cdc3c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupEmptyCategories.php b/maintenance/cleanupEmptyCategories.php index 8672223819..922b32e50f 100644 --- a/maintenance/cleanupEmptyCategories.php +++ b/maintenance/cleanupEmptyCategories.php @@ -109,14 +109,13 @@ TEXT __METHOD__, [ 'ORDER BY' => 'page_title', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ], [ 'category' => [ 'LEFT JOIN', 'page_title = cat_title' ], ] ); if ( !$rows || $rows->numRows() <= 0 ) { - # Done, hopefully. break; } @@ -161,7 +160,7 @@ TEXT __METHOD__, [ 'ORDER BY' => 'cat_title', - 'LIMIT' => $this->mBatchSize, + 'LIMIT' => $this->getBatchSize(), ], [ 'page' => [ 'LEFT JOIN', [ @@ -170,7 +169,6 @@ TEXT ] ); if ( !$rows || $rows->numRows() <= 0 ) { - # Done, hopefully. break; } foreach ( $rows as $row ) { @@ -199,5 +197,5 @@ TEXT } } -$maintClass = 'CleanupEmptyCategories'; +$maintClass = CleanupEmptyCategories::class; require_once RUN_MAINTENANCE_IF_MAIN;