dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deprecate additional public methods of Parser
[lhc/web/wiklou.git]
/
maintenance
/
recountCategories.php
diff --git
a/maintenance/recountCategories.php
b/maintenance/recountCategories.php
index
ed6a357
..
8ec648f
100644
(file)
--- a/
maintenance/recountCategories.php
+++ b/
maintenance/recountCategories.php
@@
-36,6
+36,12
@@
use MediaWiki\MediaWikiServices;
* @ingroup Maintenance
*/
class RecountCategories extends Maintenance {
* @ingroup Maintenance
*/
class RecountCategories extends Maintenance {
+ /** @var string */
+ private $mode;
+
+ /** @var int */
+ private $minimumId;
+
public function __construct() {
parent::__construct();
$this->addDescription( <<<'TEXT'
public function __construct() {
parent::__construct();
$this->addDescription( <<<'TEXT'
@@
-156,7
+162,7
@@
TEXT
[ "cat_{$this->mode}" => $row->count ],
[
'cat_id' => $row->cat_id,
[ "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();
],
__METHOD__ );
$affectedRows += $dbw->affectedRows();
@@
-168,5
+174,5
@@
TEXT
}
}
}
}
-$maintClass =
'RecountCategories'
;
+$maintClass =
RecountCategories::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;