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 BlobStore::getBlobBatch for RevisionStore::newRevisionsFromBatch"
[lhc/web/wiklou.git]
/
maintenance
/
getReplicaServer.php
diff --git
a/maintenance/getReplicaServer.php
b/maintenance/getReplicaServer.php
index
554e373
..
7e9104c
100644
(file)
--- a/
maintenance/getReplicaServer.php
+++ b/
maintenance/getReplicaServer.php
@@
-38,10
+38,7
@@
class GetReplicaServer extends Maintenance {
}
public function execute() {
}
public function execute() {
- global $wgAllDBsAreLocalhost;
- if ( $wgAllDBsAreLocalhost ) {
- $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 {