X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrecountCategories.php;h=6a00d570e8b8280191b36fd82ef46beea234cb65;hb=9ac82242a5f40f96f1681b2d605b8fd7b4f61a0c;hp=b4d75c7a1a78df387f3ef8f6883c3e07b59cbb10;hpb=b5370206ff602728c08403f14756d4339bf0a708;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/recountCategories.php b/maintenance/recountCategories.php index b4d75c7a1a..6a00d570e8 100644 --- a/maintenance/recountCategories.php +++ b/maintenance/recountCategories.php @@ -75,7 +75,7 @@ TEXT public function execute() { $this->mode = $this->getOption( 'mode' ); if ( !in_array( $this->mode, [ 'pages', 'subcats', 'files' ] ) ) { - $this->error( 'Please specify a valid mode: one of "pages", "subcats" or "files".', 1 ); + $this->fatalError( 'Please specify a valid mode: one of "pages", "subcats" or "files".' ); } $this->minimumId = intval( $this->getOption( 'begin', 0 ) ); @@ -156,7 +156,7 @@ TEXT [ "cat_{$this->mode}" => $row->count ], [ 'cat_id' => $row->cat_id, - "cat_{$this->mode} != {$row->count}", + "cat_{$this->mode} != " . (int)( $row->count ), ], __METHOD__ ); $affectedRows += $dbw->affectedRows();