From 95b52028936459800eee8db05bc24c813ccc7c67 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Thu, 21 Jun 2012 21:13:12 +0000 Subject: [PATCH] Correct usage of approot --- apps/gallery/appinfo/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gallery/appinfo/update.php b/apps/gallery/appinfo/update.php index a0997ab5e86..c1d22127428 100644 --- a/apps/gallery/appinfo/update.php +++ b/apps/gallery/appinfo/update.php @@ -7,5 +7,5 @@ if (version_compare($currentVersion, '0.5.0', '<')) { $stmt = OCP\DB::prepare('DROP TABLE IF EXISTS *PREFIX*gallery_albums'); $stmt->execute(); - \OC_DB::createDbFromStructure(OC::$APPSROOT.'/apps/'.$appid.'/appinfo/database.xml'); + \OC_DB::createDbFromStructure(OC_App::getAppPath($appid).'/appinfo/database.xml'); }