dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f84bd99
)
Sqlite fails to open a connection when $user is given.
author
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 1 Aug 2011 22:57:34 +0000
(22:57 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 1 Aug 2011 22:57:34 +0000
(22:57 +0000)
Reported by lokkju in #wikimedia-tech
includes/db/DatabaseSqlite.php
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseSqlite.php
b/includes/db/DatabaseSqlite.php
index
92525d7
..
e5fca4c
100644
(file)
--- 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 );