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
RebuildRecentchanges improvements
[lhc/web/wiklou.git]
/
maintenance
/
populateRevisionLength.php
diff --git
a/maintenance/populateRevisionLength.php
b/maintenance/populateRevisionLength.php
index
a9fb394
..
10408ec
100644
(file)
--- a/
maintenance/populateRevisionLength.php
+++ b/
maintenance/populateRevisionLength.php
@@
-33,7
+33,7
@@
require_once __DIR__ . '/Maintenance.php';
class PopulateRevisionLength extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
class PopulateRevisionLength extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Populates the rev_len and ar_len fields"
;
+ $this->
addDescription( 'Populates the rev_len and ar_len fields' )
;
$this->setBatchSize( 200 );
}
$this->setBatchSize( 200 );
}
@@
-92,11
+92,11
@@
class PopulateRevisionLength extends LoggedUpdateMaintenance {
$res = $db->select(
$table,
$fields,
$res = $db->select(
$table,
$fields,
- array(
+ [
"$idCol >= $blockStart",
"$idCol <= $blockEnd",
"{$prefix}_len IS NULL"
"$idCol >= $blockStart",
"$idCol <= $blockEnd",
"{$prefix}_len IS NULL"
-
)
,
+
]
,
__METHOD__
);
__METHOD__
);
@@
-142,8
+142,8
@@
class PopulateRevisionLength extends LoggedUpdateMaintenance {
# Update the row...
$db->update( $table,
# Update the row...
$db->update( $table,
-
array( "{$prefix}_len" => $content->getSize() )
,
-
array( $idCol => $row->$idCol )
,
+
[ "{$prefix}_len" => $content->getSize() ]
,
+
[ $idCol => $row->$idCol ]
,
__METHOD__
);
__METHOD__
);