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
Disable "...able to change preferences" browser test
[lhc/web/wiklou.git]
/
maintenance
/
recountCategories.php
diff --git
a/maintenance/recountCategories.php
b/maintenance/recountCategories.php
index
ed6a357
..
838405a
100644
(file)
--- a/
maintenance/recountCategories.php
+++ b/
maintenance/recountCategories.php
@@
-98,7
+98,7
@@
TEXT
protected function doWork() {
$this->output( "Finding up to {$this->getBatchSize()} drifted rows " .
protected function doWork() {
$this->output( "Finding up to {$this->getBatchSize()} drifted rows " .
- "
starting at cat_id {$this->getBatchSize()
}...\n" );
+ "
greater than cat_id {$this->minimumId
}...\n" );
$countingConds = [ 'cl_to = cat_title' ];
if ( $this->mode === 'subcats' ) {
$countingConds = [ 'cl_to = cat_title' ];
if ( $this->mode === 'subcats' ) {
@@
-156,7
+156,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
+168,5
@@
TEXT
}
}
}
}
-$maintClass =
'RecountCategories'
;
+$maintClass =
RecountCategories::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;