X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetSlaveServer.php;h=81228cc575ba393b7093bb4b5796f6da0b4dc38f;hb=96519cfa9746652c143d927b0089324e1f86f6c0;hp=68c19439ad480a6e0a5ff38270047fba16f1a524;hpb=06db1a2335826d7da5da2a47ddec44a08094376d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getSlaveServer.php b/maintenance/getSlaveServer.php index 68c19439ad..81228cc575 100644 --- a/maintenance/getSlaveServer.php +++ b/maintenance/getSlaveServer.php @@ -32,7 +32,7 @@ class GetSlaveServer extends Maintenance { public function __construct() { parent::__construct(); $this->addOption( "group", "Query group to check specifically" ); - $this->mDescription = "Report the hostname of a slave server"; + $this->addDescription( 'Report the hostname of a slave server' ); } public function execute() { @@ -40,7 +40,7 @@ class GetSlaveServer extends Maintenance { if ( $wgAllDBsAreLocalhost ) { $host = 'localhost'; } elseif ( $this->hasOption( 'group' ) ) { - $db = wfGetDB( DB_SLAVE, $this->getOption( 'group' ) ); + $db = $this->getDB( DB_SLAVE, $this->getOption( 'group' ) ); $host = $db->getServer(); } else { $lb = wfGetLB();