X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=f2a00078e8efdfe4cbbae244cb96c6eb0ba150a8;hp=87a46998e2ac7b028ae94b924d9f7fb65786ed71;hb=5490b1270a0a7447f28d2407736fc3c1deb41d44;hpb=2a1fcd27c19913394c179cbe8be1a9e981d7f81b diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index 87a46998e2..f2a00078e8 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -71,7 +71,7 @@ TEXT public function execute() { $begin = $this->getOption( 'begin', '' ); $throttle = $this->getOption( 'throttle', 0 ); - $force = $this->getOption( 'force', false ); + $force = $this->hasOption( 'force' ); $dbw = $this->getDB( DB_MASTER ); @@ -150,5 +150,5 @@ TEXT } } -$maintClass = "PopulateCategory"; +$maintClass = PopulateCategory::class; require_once RUN_MAINTENANCE_IF_MAIN;