summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/ajax/addBookmark.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmarks/ajax/addBookmark.php')
-rw-r--r--apps/bookmarks/ajax/addBookmark.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/bookmarks/ajax/addBookmark.php b/apps/bookmarks/ajax/addBookmark.php
index b4d0f33d721..baf3a288c17 100644
--- a/apps/bookmarks/ajax/addBookmark.php
+++ b/apps/bookmarks/ajax/addBookmark.php
@@ -28,9 +28,10 @@ $RUNTIME_NOSETUPFS=true;
// Check if we are a user
OCP\JSON::checkLoggedIn();
-OCP\JSON::checkAppEnabled('bookmarks');
OCP\JSON::callCheck();
-require_once(OC::$APPSROOT . '/apps/bookmarks/bookmarksHelper.php');
+OCP\JSON::checkAppEnabled('bookmarks');
+
+require_once(OC_App::getAppPath('bookmarks').'/bookmarksHelper.php');
$id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']);
-OCP\JSON::success(array('data' => $id)); \ No newline at end of file
+OCP\JSON::success(array('data' => $id));