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 "objectcache: add some WANObjectCache comments to set() and delete()"
[lhc/web/wiklou.git]
/
maintenance
/
tidyUpBug37714.php
diff --git
a/maintenance/tidyUpBug37714.php
b/maintenance/tidyUpBug37714.php
index
f47e13c
..
0dd0341
100644
(file)
--- a/
maintenance/tidyUpBug37714.php
+++ b/
maintenance/tidyUpBug37714.php
@@
-7,7
+7,7
@@
require_once __DIR__ . '/Maintenance.php';
class TidyUpBug37714 extends Maintenance {
public function execute() {
// Search for all log entries which are about changing the visability of other log entries.
class TidyUpBug37714 extends Maintenance {
public function execute() {
// Search for all log entries which are about changing the visability of other log entries.
- $result = $this->getDB( DB_
SLAVE
)->select(
+ $result = $this->getDB( DB_
REPLICA
)->select(
'logging',
[ 'log_id', 'log_params' ],
[
'logging',
[ 'log_id', 'log_params' ],
[
@@
-21,7
+21,7
@@
class TidyUpBug37714 extends Maintenance {
foreach ( $result as $row ) {
$ids = explode( ',', explode( "\n", $row->log_params )[0] );
foreach ( $result as $row ) {
$ids = explode( ',', explode( "\n", $row->log_params )[0] );
- $result = $this->getDB( DB_
SLAVE
)->select( // Work out what log entries were changed here.
+ $result = $this->getDB( DB_
REPLICA
)->select( // Work out what log entries were changed here.
'logging',
'log_type',
[ 'log_id' => $ids ],
'logging',
'log_type',
[ 'log_id' => $ids ],
@@
-44,5
+44,5
@@
class TidyUpBug37714 extends Maintenance {
}
}
}
}
-$maintClass =
'TidyUpBug37714'
;
+$maintClass =
TidyUpBug37714::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;