X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=87a46998e2ac7b028ae94b924d9f7fb65786ed71;hb=10d1b7d12b5d097413cd507740c5c71781c2580b;hp=481e07363b35df27fad3e642a4717ff507d97419;hpb=23299ca8790bcf1aebcf54e0932b94338e630474;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index 481e07363b..87a46998e2 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -35,7 +35,8 @@ class PopulateCategory extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = <<addDescription( + <<addOption( 'begin', 'Only do categories whose names are alphabetically after the provided name', @@ -77,7 +79,7 @@ TEXT; $row = $dbw->selectRow( 'updatelog', '1', - array( 'ul_key' => 'populate category' ), + [ 'ul_key' => 'populate category' ], __METHOD__ ); if ( $row ) { @@ -104,9 +106,9 @@ TEXT; 'cl_to', $where, __METHOD__, - array( + [ 'ORDER BY' => 'cl_to' - ) + ] ); if ( !$row ) { # Done, hopefully. @@ -133,7 +135,7 @@ TEXT; if ( $dbw->insert( 'updatelog', - array( 'ul_key' => 'populate category' ), + [ 'ul_key' => 'populate category' ], __METHOD__, 'IGNORE' ) ) {