mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
* added configuration aliases (user -> username, pass -> password)
* dibi::$defaultDriver
This commit is contained in:
@@ -33,12 +33,8 @@ class DibiSqliteDriver extends DibiDriver
|
||||
*/
|
||||
public function __construct($config)
|
||||
{
|
||||
if (empty($config['database'])) {
|
||||
throw new DibiException("Database must be specified");
|
||||
}
|
||||
|
||||
self::prepare($config, 'database', 'file');
|
||||
if (!isset($config['mode'])) $config['mode'] = 0666;
|
||||
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user