Index: trunk/phase3/includes/db/DatabaseIbm_db2.php |
— | — | @@ -245,11 +245,6 @@ |
246 | 246 | return 'ibm_db2'; |
247 | 247 | } |
248 | 248 | |
249 | | - ###################################### |
250 | | - # Setup |
251 | | - ###################################### |
252 | | - |
253 | | - |
254 | 249 | /** |
255 | 250 | * |
256 | 251 | * @param $server String: hostname of database server |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -26,8 +26,8 @@ |
27 | 27 | function __construct( $server = false, $user = false, $password = false, $dbName = false, $flags = 0 ) { |
28 | 28 | $this->mName = $dbName; |
29 | 29 | parent::__construct( $server, $user, $password, $dbName, $flags ); |
30 | | - // parent doesn't open when $server is false, but we can work with $dbName |
31 | | - if( !$server && $dbName ) { |
| 30 | + // parent doesn't open when $user is false, but we can work with $dbName |
| 31 | + if( !$user && $dbName ) { |
32 | 32 | global $wgSharedDB; |
33 | 33 | if( $this->open( $server, $user, $password, $dbName ) && $wgSharedDB ) { |
34 | 34 | $this->attachDatabase( $wgSharedDB ); |