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 "Use <div> wrappers instead of <p> in ProtectionForm"
[lhc/web/wiklou.git]
/
maintenance
/
checkBadRedirects.php
diff --git
a/maintenance/checkBadRedirects.php
b/maintenance/checkBadRedirects.php
index
097ad1f
..
b22432a
100644
(file)
--- a/
maintenance/checkBadRedirects.php
+++ b/
maintenance/checkBadRedirects.php
@@
-36,7
+36,7
@@
class CheckBadRedirects extends Maintenance {
public function execute() {
$this->output( "Fetching redirects...\n" );
public function execute() {
$this->output( "Fetching redirects...\n" );
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$result = $dbr->select(
[ 'page' ],
[ 'page_namespace', 'page_title', 'page_latest' ],
$result = $dbr->select(
[ 'page' ],
[ 'page_namespace', 'page_title', 'page_latest' ],
@@
-60,5
+60,5
@@
class CheckBadRedirects extends Maintenance {
}
}
}
}
-$maintClass =
"CheckBadRedirects"
;
+$maintClass =
CheckBadRedirects::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;