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 "Remove deprecated mediawiki.widgets.visibleByteLimit alias"
[lhc/web/wiklou.git]
/
maintenance
/
populateCategory.php
diff --git
a/maintenance/populateCategory.php
b/maintenance/populateCategory.php
index
5a8ef90
..
f2a0007
100644
(file)
--- a/
maintenance/populateCategory.php
+++ b/
maintenance/populateCategory.php
@@
-71,7
+71,7
@@
TEXT
public function execute() {
$begin = $this->getOption( 'begin', '' );
$throttle = $this->getOption( 'throttle', 0 );
public function execute() {
$begin = $this->getOption( 'begin', '' );
$throttle = $this->getOption( 'throttle', 0 );
- $force = $this->
getOption( 'force', false
);
+ $force = $this->
hasOption( 'force'
);
$dbw = $this->getDB( DB_MASTER );
$dbw = $this->getDB( DB_MASTER );
@@
-79,7
+79,7
@@
TEXT
$row = $dbw->selectRow(
'updatelog',
'1',
$row = $dbw->selectRow(
'updatelog',
'1',
-
array( 'ul_key' => 'populate category' )
,
+
[ 'ul_key' => 'populate category' ]
,
__METHOD__
);
if ( $row ) {
__METHOD__
);
if ( $row ) {
@@
-106,9
+106,9
@@
TEXT
'cl_to',
$where,
__METHOD__,
'cl_to',
$where,
__METHOD__,
- array(
+ [
'ORDER BY' => 'cl_to'
'ORDER BY' => 'cl_to'
- )
+ ]
);
if ( !$row ) {
# Done, hopefully.
);
if ( !$row ) {
# Done, hopefully.
@@
-135,7
+135,7
@@
TEXT
if ( $dbw->insert(
'updatelog',
if ( $dbw->insert(
'updatelog',
-
array( 'ul_key' => 'populate category' )
,
+
[ 'ul_key' => 'populate category' ]
,
__METHOD__,
'IGNORE'
) ) {
__METHOD__,
'IGNORE'
) ) {
@@
-150,5
+150,5
@@
TEXT
}
}
}
}
-$maintClass =
"PopulateCategory"
;
+$maintClass =
PopulateCategory::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;