summaryrefslogtreecommitdiffstats
path: root/apps/gallery
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-21 21:13:12 +0000
committerBrice Maron <brice@bmaron.net>2012-06-21 21:13:12 +0000
commit95b52028936459800eee8db05bc24c813ccc7c67 (patch)
tree8619fcd360dca7c3be4495f369a2626c094e4b5e /apps/gallery
parentbf6abdde2df060af7657f5328fdc638a561d21aa (diff)
downloadnextcloud-server-95b52028936459800eee8db05bc24c813ccc7c67.tar.gz
nextcloud-server-95b52028936459800eee8db05bc24c813ccc7c67.zip
Correct usage of approot
Diffstat (limited to 'apps/gallery')
-rw-r--r--apps/gallery/appinfo/update.php2
1 files changed, 1 insertions, 1 deletions
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');
}