use absolute path for db_structure.xml when updating
This commit is contained in:
parent
1b1c4889fc
commit
6e0ea7aaae
|
@ -156,7 +156,7 @@ class OC{
|
|||
$installedVersion=OC_Config::getValue('version','0.0.0');
|
||||
$currentVersion=implode('.',OC_Util::getVersion());
|
||||
if (version_compare($currentVersion, $installedVersion, '>')) {
|
||||
OC_DB::updateDbFromStructure('../db_structure.xml');
|
||||
OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
|
||||
OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue