Respect coding style
This commit is contained in:
parent
e5cb638c09
commit
24977d0fd0
|
@ -42,7 +42,8 @@ class OC_DB {
|
|||
* @return BACKEND_MDB2 or BACKEND_PDO
|
||||
*/
|
||||
private static function getDBBackend(){
|
||||
if(class_exists('PDO') && OC_Config::getValue('installed', false)){//check if we can use PDO, else use MDB2 (installation always needs to be done my mdb2)
|
||||
//check if we can use PDO, else use MDB2 (installation always needs to be done my mdb2)
|
||||
if(class_exists('PDO') && OC_Config::getValue('installed', false)) {
|
||||
$type = OC_Config::getValue( "dbtype", "sqlite" );
|
||||
if($type=='oci') { //oracle also always needs mdb2
|
||||
return self::BACKEND_MDB2;
|
||||
|
@ -182,7 +183,7 @@ class OC_DB {
|
|||
// do nothing if the connection already has been established
|
||||
if(!self::$MDB2) {
|
||||
// Require MDB2.php (not required in the head of the file so we only load it when needed)
|
||||
require_once('MDB2.php');
|
||||
require_once 'MDB2.php';
|
||||
|
||||
// Prepare options array
|
||||
$options = array(
|
||||
|
@ -503,7 +504,7 @@ class OC_DB {
|
|||
|
||||
// Connect if this did not happen before
|
||||
if(!self::$schema) {
|
||||
require_once('MDB2/Schema.php');
|
||||
require_once 'MDB2/Schema.php';
|
||||
self::$schema=MDB2_Schema::factory(self::$MDB2);
|
||||
}
|
||||
|
||||
|
@ -608,7 +609,6 @@ class OC_DB {
|
|||
// Create new tables
|
||||
self::createDBFromStructure( $file );
|
||||
self::commit();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue