diff --git a/ajax/addBookmark.php b/ajax/addBookmark.php old mode 100644 new mode 100755 index ceeb034e..9241dc8d --- a/ajax/addBookmark.php +++ b/ajax/addBookmark.php @@ -27,9 +27,9 @@ $RUNTIME_NOSETUPFS=true; // Check if we are a user -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('bookmarks'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('bookmarks'); require_once(OC::$APPSROOT . '/apps/bookmarks/bookmarksHelper.php'); $id = addBookmark($_GET['url'], $_GET['title'], $_GET['tags']); -OC_JSON::success(array('data' => $id)); \ No newline at end of file +OCP\JSON::success(array('data' => $id)); \ No newline at end of file diff --git a/ajax/delBookmark.php b/ajax/delBookmark.php index 984a8593..f4019294 100755 --- a/ajax/delBookmark.php +++ b/ajax/delBookmark.php @@ -27,8 +27,8 @@ $RUNTIME_NOSETUPFS=true; // Check if we are a user -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('bookmarks'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('bookmarks'); $params=array( htmlspecialchars_decode($_GET["url"]), @@ -59,4 +59,4 @@ $query = OC_DB::prepare(" $result = $query->execute(); // var_dump($params); -OC_JSON::success(array('data' => array())); +OCP\JSON::success(array('data' => array())); diff --git a/ajax/editBookmark.php b/ajax/editBookmark.php index 5bed9d08..1b6d6d6c 100755 --- a/ajax/editBookmark.php +++ b/ajax/editBookmark.php @@ -27,8 +27,8 @@ $RUNTIME_NOSETUPFS=true; // Check if we are a user -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('bookmarks'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('bookmarks'); $CONFIG_DBTYPE = OCP\Config::getSystemValue( "dbtype", "sqlite" ); if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){ diff --git a/ajax/recordClick.php b/ajax/recordClick.php index 6519de24..03d01063 100755 --- a/ajax/recordClick.php +++ b/ajax/recordClick.php @@ -27,8 +27,8 @@ $RUNTIME_NOSETUPFS=true; // Check if we are a user -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('bookmarks'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('bookmarks'); $query = OC_DB::prepare(" UPDATE *PREFIX*bookmarks diff --git a/ajax/updateList.php b/ajax/updateList.php old mode 100644 new mode 100755 index 6aa951bb..c919a5fc --- a/ajax/updateList.php +++ b/ajax/updateList.php @@ -28,8 +28,8 @@ $RUNTIME_NOSETUPFS=true; // Check if we are a user -OC_JSON::checkLoggedIn(); -OC_JSON::checkAppEnabled('bookmarks'); +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('bookmarks'); //Filter for tag? @@ -47,4 +47,4 @@ if($sort == 'bookmarks_sorting_clicks') { $bookmarks = OC_Bookmarks_Bookmarks::findBookmarks($offset, $sqlSortColumn, $filterTag, true); -OC_JSON::success(array('data' => $bookmarks)); +OCP\JSON::success(array('data' => $bookmarks));