X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetReplicaServer.php;h=7e9104cceacad26a2c503329e819c2c8946bfbcb;hb=75e1edeacd5c976354ecac4e8056716fb82569e4;hp=554e373e8bdcabaa71c3cf701c313043fbe65cb6;hpb=7793c8acc6d21c451cd5737fd6b98b1a7d9a5e00;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getReplicaServer.php b/maintenance/getReplicaServer.php index 554e373e8b..7e9104ccea 100644 --- a/maintenance/getReplicaServer.php +++ b/maintenance/getReplicaServer.php @@ -38,10 +38,7 @@ class GetReplicaServer extends Maintenance { } 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 {