diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-09-18 14:05:38 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-09-18 14:05:38 +0200 |
commit | 39fa5d1c7fe6b0e3c90396eb16a875b74d803894 (patch) | |
tree | 0695f7ac4ccab1a62ca84966be135c58cf28569a /lib/db.php | |
parent | b86367866e6f904ca994e84c64af9e1fb699e98b (diff) | |
download | nextcloud-server-39fa5d1c7fe6b0e3c90396eb16a875b74d803894.tar.gz nextcloud-server-39fa5d1c7fe6b0e3c90396eb16a875b74d803894.zip |
always use mdb2 for installation
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php index 3c0ab8544af..20adff30787 100644 --- a/lib/db.php +++ b/lib/db.php @@ -43,13 +43,12 @@ class OC_DB { * Connects to the database as specified in config.php */ public static function connect(){ - if(class_exists('PDO')){//check if we can use PDO, else use MDB2 + if(class_exists('PDO') && OC_Config::getValue('installed', false)){//check if we can use PDO, else use MDB2 (instalation always needs to be done my mdb2) self::connectPDO(); self::$connection=self::$PDO; self::$backend=self::BACKEND_PDO; }else{ self::connectMDB2(); - die('bar'); self::$connection=self::$MDB2; self::$backend=self::BACKEND_MDB2; } |