Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git] / maintenance / populatePPSortKey.php
index 7e3c2c3..1ba7054 100644 (file)
@@ -23,8 +23,6 @@
 
 require_once __DIR__ . '/Maintenance.php';
 
-use Wikimedia\Rdbms\IDatabase;
-
 /**
  * Usage:
  *  populatePPSortKey.php
@@ -59,7 +57,7 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
                                __METHOD__,
                                [
                                        'ORDER BY' => 'pp_page, pp_propname',
-                                       'LIMIT' => $this->mBatchSize
+                                       'LIMIT' => $this->getBatchSize()
                                ]
                        );
 
@@ -102,5 +100,5 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance {
        }
 }
 
-$maintClass = 'PopulatePPSortKey';
+$maintClass = PopulatePPSortKey::class;
 require_once RUN_MAINTENANCE_IF_MAIN;