X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulatePPSortKey.php;h=1ba70549a4fcb5fc1e16f49ac4ed4c666d2e6762;hb=2af23b87c9dbc7be3af839dea25bb39e8fc2ec07;hp=7e3c2c3d25126a144dc55e33a885d6569c696bef;hpb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populatePPSortKey.php b/maintenance/populatePPSortKey.php index 7e3c2c3d25..1ba70549a4 100644 --- a/maintenance/populatePPSortKey.php +++ b/maintenance/populatePPSortKey.php @@ -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;