Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2010-07-05 13:37:50 +0400
committerRobin Appelman <icewind1991@gmail.com>2010-07-05 13:37:50 +0400
commitd96793f14f810f9d6f1641922aad03cb84f4647f (patch)
tree3758d3b66811930ddea6e4b175278bea0fb476f2 /inc/lib_base.php
parente4a83b68e905347330f8c997c8f72daefadb031e (diff)
Fix some database problems, do not use the cache when creating users
Diffstat (limited to 'inc/lib_base.php')
-rwxr-xr-xinc/lib_base.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/lib_base.php b/inc/lib_base.php
index cfd9d4a567b..775504a656b 100755
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -336,7 +336,7 @@ class OC_DB {
'portability' => MDB2_PORTABILITY_ALL,
'log_line_break' => '<br>',
'idxname_format' => '%s',
- 'debug' => false,
+ 'debug' => true,
'quote_identifier' => true,
);
if($CONFIG_DBTYPE=='sqlite'){
@@ -363,12 +363,12 @@ class OC_DB {
);
}
self::$DBConnection=&MDB2::factory($dsn,$options);
- if (@PEAR::isError(self::$DBConnection)) {
+ if (PEAR::isError(self::$DBConnection)) {
echo('<b>can not connect to database, using '.$CONFIG_DBTYPE.'. ('.self::$DBConnection->getUserInfo().')</center>');
die(self::$DBConnection->getMessage());
}
self::$DBConnection->setFetchMode(MDB2_FETCHMODE_ASSOC);
- self::$schema=&MDB2_Schema::factory($dsn,$options);
+ self::$schema=&MDB2_Schema::factory(self::$DBConnection);
}
}
@@ -634,12 +634,12 @@ function oc_include_once($file){
global $CONFIG_HTTPFORCESSL;
global $CONFIG_DATEFORMAT;
global $CONFIG_INSTALLED;
- if(is_file($file)){
- return include_once($file);
- }elseif(is_file($SERVERROOT.'/'.$file)){
+ if(is_file($SERVERROOT.'/'.$file)){
return include_once($SERVERROOT.'/'.$file);
}elseif(is_file($SERVERROOT.'/inc/'.$file)){
return include_once($SERVERROOT.'/inc/'.$file);
+ }elseif(is_file($file)){
+ return include_once($file);
}
}