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
Merge "Rename CDN config variables to be generic, deprecating the old names"
[lhc/web/wiklou.git]
/
maintenance
/
populateCategory.php
diff --git
a/maintenance/populateCategory.php
b/maintenance/populateCategory.php
index
f2a0007
..
ce1506c
100644
(file)
--- a/
maintenance/populateCategory.php
+++ b/
maintenance/populateCategory.php
@@
-93,9
+93,9
@@
TEXT
$throttle = intval( $throttle );
if ( $begin !== '' ) {
$throttle = intval( $throttle );
if ( $begin !== '' ) {
- $where =
'cl_to > ' . $dbw->addQuotes( $begin )
;
+ $where =
[ 'cl_to > ' . $dbw->addQuotes( $begin ) ]
;
} else {
} else {
- $where =
null
;
+ $where =
[ '1 = 1' ]
;
}
$i = 0;
}
$i = 0;
@@
-133,20
+133,14
@@
TEXT
usleep( $throttle * 1000 );
}
usleep( $throttle * 1000 );
}
-
if (
$dbw->insert(
+ $dbw->insert(
'updatelog',
[ 'ul_key' => 'populate category' ],
__METHOD__,
'IGNORE'
'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;
}
}
}
}