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
RELEASE-NOTES-1.31: Synchronise with master
[lhc/web/wiklou.git]
/
maintenance
/
getReplicaServer.php
diff --git
a/maintenance/getReplicaServer.php
b/maintenance/getReplicaServer.php
index
b3e7377
..
43e876e
100644
(file)
--- a/
maintenance/getReplicaServer.php
+++ b/
maintenance/getReplicaServer.php
@@
-40,7
+40,7
@@
class GetSlaveServer extends Maintenance {
if ( $wgAllDBsAreLocalhost ) {
$host = 'localhost';
} elseif ( $this->hasOption( 'group' ) ) {
if ( $wgAllDBsAreLocalhost ) {
$host = 'localhost';
} elseif ( $this->hasOption( 'group' ) ) {
- $db = $this->getDB( DB_
SLAVE
, $this->getOption( 'group' ) );
+ $db = $this->getDB( DB_
REPLICA
, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$lb = wfGetLB();
$host = $db->getServer();
} else {
$lb = wfGetLB();
@@
-51,5
+51,5
@@
class GetSlaveServer extends Maintenance {
}
}
}
}
-$maintClass =
"GetSlaveServer"
;
+$maintClass =
GetSlaveServer::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;