X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateCategory.php;h=ab0ca1ede42548f87427ff7ab34d4219c3dca3c0;hb=5a77286a1e32f4fd784b5c2985f149fe39b45073;hp=15087f8c1d6c59f84cf686d293dcc677288a1004;hpb=f2f31fadc7d3aba8588b1ea6410f92166de1ac0a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php index 15087f8c1d..ab0ca1ede4 100644 --- a/maintenance/populateCategory.php +++ b/maintenance/populateCategory.php @@ -92,8 +92,9 @@ TEXT; ); if ( $row ) { $this->output( "Category table already populated. Use php " . - "maintenance/populateCategory.php\n--force from the command line " . - "to override.\n" ); + "maintenance/populateCategory.php\n--force from the command line " . + "to override.\n" ); + return true; } } @@ -141,16 +142,17 @@ TEXT; } if ( $dbw->insert( - 'updatelog', - array( 'ul_key' => 'populate category' ), - __METHOD__, - 'IGNORE' - ) - ) { + 'updatelog', + array( '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; } }