Update IPSet use statements
[lhc/web/wiklou.git] / maintenance / cleanupEmptyCategories.php
index b8a246e..2d22704 100644 (file)
@@ -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', [