X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fsql.php;h=886e3f108d0bffc78f159d9461450b01ab8b58ab;hb=49b6a7c3cd4963cda38fbc156cdf5a5da21dd894;hp=afa3ef725c79a8bc762de4dadfd00a03d24c9ff7;hpb=5f8b92578167107e91e2b10b631de0cada0b4854;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/sql.php b/maintenance/sql.php index afa3ef725c..886e3f108d 100644 --- a/maintenance/sql.php +++ b/maintenance/sql.php @@ -39,7 +39,8 @@ class MwSql extends Maintenance { } public function execute() { - $wiki = $this->getOption( 'wikidb' ) ?: false; + // We wan't to allow "" for the wikidb, meaning don't call select_db() + $wiki = $this->hasOption( 'wikidb' ) ? $this->getOption( 'wikidb' ) : false; // Get the appropriate load balancer (for this wiki) if ( $this->hasOption( 'cluster' ) ) { $lb = wfGetLBFactory()->getExternalLB( $this->getOption( 'cluster' ), $wiki );