X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetReplicaServer.php;h=7e9104cceacad26a2c503329e819c2c8946bfbcb;hb=d42d1dbabd7dc81b454cfad8bbbe787cdd3cdf9f;hp=d861348dbd6c3894c740af69485e75e2cbc1c699;hpb=a9fb2b3b064c7d573cbed11f6cf3d78996a7f57e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getReplicaServer.php b/maintenance/getReplicaServer.php index d861348dbd..7e9104ccea 100644 --- a/maintenance/getReplicaServer.php +++ b/maintenance/getReplicaServer.php @@ -38,9 +38,7 @@ class GetReplicaServer extends Maintenance { } 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 {