From: Chad Horohoe Date: Mon, 1 Aug 2011 22:57:34 +0000 (+0000) Subject: Sqlite fails to open a connection when $user is given. X-Git-Tag: 1.31.0-rc.0~28509 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=f54857941f04b7f3d4d40a87ec13b2c398567c53;p=lhc%2Fweb%2Fwiklou.git Sqlite fails to open a connection when $user is given. Reported by lokkju in #wikimedia-tech --- diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 92525d75bf..e5fca4cf9c 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -37,7 +37,7 @@ class DatabaseSqlite extends DatabaseBase { $this->mName = $dbName; parent::__construct( $server, $user, $password, $dbName, $flags ); // parent doesn't open when $user is false, but we can work with $dbName - if( !$user && $dbName ) { + if( $dbName ) { global $wgSharedDB; if( $this->open( $server, $user, $password, $dbName ) && $wgSharedDB ) { $this->attachDatabase( $wgSharedDB );