Skip to content
Snippets Groups Projects
Commit 39fa5d1c authored by Robin Appelman's avatar Robin Appelman
Browse files

always use mdb2 for installation

parent b8636786
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment