diff options
Diffstat (limited to 'maintenance/sql.php')
-rw-r--r-- | maintenance/sql.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/maintenance/sql.php b/maintenance/sql.php index afa3ef72..886e3f10 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 ); |