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 "filebackend: replace wfTimestamp() calls with ConvertibleTimestamp::convert()"
[lhc/web/wiklou.git]
/
maintenance
/
getReplicaServer.php
diff --git
a/maintenance/getReplicaServer.php
b/maintenance/getReplicaServer.php
index
d861348
..
7e9104c
100644
(file)
--- a/
maintenance/getReplicaServer.php
+++ b/
maintenance/getReplicaServer.php
@@
-38,9
+38,7
@@
class GetReplicaServer extends Maintenance {
}
public function execute() {
}
public function execute() {
- if ( $this->getConfig()->get( 'AllDBsAreLocalhost' ) ) {
- $host = 'localhost';
- } elseif ( $this->hasOption( 'group' ) ) {
+ if ( $this->hasOption( 'group' ) ) {
$db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {