diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
commit | 97a8af7f2519e9ba01c2ff0c16a3102f716c0d13 (patch) | |
tree | 9f6a83c9da6a18ce0cd14f8513c6f647a8edc956 /apps/bookmarks/ajax | |
parent | f85d076a4e1df2de8b7b75e379d52fd71807ae01 (diff) | |
download | nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.tar.gz nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.zip |
ported oc_db
Diffstat (limited to 'apps/bookmarks/ajax')
-rwxr-xr-x | apps/bookmarks/ajax/delBookmark.php | 6 | ||||
-rwxr-xr-x | apps/bookmarks/ajax/editBookmark.php | 6 | ||||
-rwxr-xr-x | apps/bookmarks/ajax/recordClick.php | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/apps/bookmarks/ajax/delBookmark.php b/apps/bookmarks/ajax/delBookmark.php index f40192943e4..2634bed0b9c 100755 --- a/apps/bookmarks/ajax/delBookmark.php +++ b/apps/bookmarks/ajax/delBookmark.php @@ -35,7 +35,7 @@ $params=array( OCP\USER::getUser() ); -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" SELECT id FROM *PREFIX*bookmarks WHERE url LIKE ? AND user_id = ? @@ -43,7 +43,7 @@ $query = OC_DB::prepare(" $id = $query->execute($params)->fetchOne(); -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" DELETE FROM *PREFIX*bookmarks WHERE id = $id "); @@ -51,7 +51,7 @@ $query = OC_DB::prepare(" $result = $query->execute(); -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" DELETE FROM *PREFIX*bookmarks_tags WHERE bookmark_id = $id "); diff --git a/apps/bookmarks/ajax/editBookmark.php b/apps/bookmarks/ajax/editBookmark.php index 1b6d6d6ce44..db349af35c1 100755 --- a/apps/bookmarks/ajax/editBookmark.php +++ b/apps/bookmarks/ajax/editBookmark.php @@ -41,7 +41,7 @@ if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){ $bookmark_id = (int)$_GET["id"]; -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" UPDATE *PREFIX*bookmarks SET url = ?, title =?, lastmodified = $_ut WHERE id = $bookmark_id @@ -54,14 +54,14 @@ $params=array( $query->execute($params); # Remove old tags and insert new ones. -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" DELETE FROM *PREFIX*bookmarks_tags WHERE bookmark_id = $bookmark_id "); $query->execute(); -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" INSERT INTO *PREFIX*bookmarks_tags (bookmark_id, tag) VALUES (?, ?) diff --git a/apps/bookmarks/ajax/recordClick.php b/apps/bookmarks/ajax/recordClick.php index 03d010637fc..2bd91f232a4 100755 --- a/apps/bookmarks/ajax/recordClick.php +++ b/apps/bookmarks/ajax/recordClick.php @@ -30,7 +30,7 @@ $RUNTIME_NOSETUPFS=true; OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('bookmarks'); -$query = OC_DB::prepare(" +$query = OCP\DB::prepare(" UPDATE *PREFIX*bookmarks SET clickcount = clickcount + 1 WHERE user_id = ? |