use absolute path for db_structure.xml when updating

This commit is contained in:
Robin Appelman 2012-01-13 20:05:24 +01:00
parent 1b1c4889fc
commit 6e0ea7aaae
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
}