X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=5a8ef90c0cf8cc5f5e4863a140d20b982abff702;hb=4dc3ac1c375b3d2eb6172dfef8fdebe71b8c5f43;hp=66553bc6bfe9b095aac9be677ca39ca8188207a5;hpb=200322ca9a983f0a13d8ad2c3d70e623bfd68d24;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index 66553bc6bf..5a8ef90c0c 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -25,7 +25,7 @@ require_once __DIR__ . '/Maintenance.php'; /** - * Mainteance script to populate the category table. + * Maintenance script to populate the category table. * * @ingroup Maintenance */ @@ -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', @@ -71,7 +73,7 @@ TEXT; $throttle = $this->getOption( 'throttle', 0 ); $force = $this->getOption( 'force', false ); - $dbw = wfGetDB( DB_MASTER ); + $dbw = $this->getDB( DB_MASTER ); if ( !$force ) { $row = $dbw->selectRow(