use absolute path for db_structure.xml when updating

remotes/origin/stable
Robin Appelman 15 years ago
parent 1b1c4889fc
commit 6e0ea7aaae
  1. 2
      lib/base.php

@ -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…
Cancel
Save