X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=f07bc5526f12e14b69ce982bbc0a2c0a8bcb6c68;hb=43a0144346da4e6edbbadee0b7d9def53357bc10;hp=5dccdd65ec96d452fe4bba872926456ea4ec2bda;hpb=89539f2aa1b158fdcc703ad053e2580cb97a6385;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index 5dccdd65ec..f07bc5526f 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -133,22 +133,16 @@ TEXT usleep( $throttle * 1000 ); } - if ( $dbw->insert( + $dbw->insert( 'updatelog', [ 'ul_key' => 'populate category' ], __METHOD__, 'IGNORE' - ) ) { - $this->output( "Category population complete.\n" ); - - return true; - } else { - $this->output( "Could not insert category population row.\n" ); + ); - return false; - } + return true; } } -$maintClass = "PopulateCategory"; +$maintClass = PopulateCategory::class; require_once RUN_MAINTENANCE_IF_MAIN;