Fix output of RecountCategories::doWork()
[lhc/web/wiklou.git] / maintenance / recountCategories.php
index 6a00d57..7e37fcb 100644 (file)
@@ -36,6 +36,12 @@ use MediaWiki\MediaWikiServices;
  * @ingroup Maintenance
  */
 class RecountCategories extends Maintenance {
+       /** @var string */
+       private $mode;
+
+       /** @var int */
+       private $minimumId;
+
        public function __construct() {
                parent::__construct();
                $this->addDescription( <<<'TEXT'
@@ -98,7 +104,7 @@ TEXT
 
        protected function doWork() {
                $this->output( "Finding up to {$this->getBatchSize()} drifted rows " .
-                       "starting at cat_id {$this->getBatchSize()}...\n" );
+                       "greater than cat_id {$this->minimumId}...\n" );
 
                $countingConds = [ 'cl_to = cat_title' ];
                if ( $this->mode === 'subcats' ) {
@@ -168,5 +174,5 @@ TEXT
        }
 }
 
-$maintClass = 'RecountCategories';
+$maintClass = RecountCategories::class;
 require_once RUN_MAINTENANCE_IF_MAIN;