From 6e0ea7aaaef50b7d7a48477995094da7aa745e4a Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Fri, 13 Jan 2012 20:05:24 +0100
Subject: [PATCH] use absolute path for db_structure.xml when updating

---
 lib/base.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index e0f14b703d..9531f7ed74 100644
--- a/lib/base.php
+++ b/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()));
 			}
 
-- 
GitLab