mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-02-28 00:54:31 +01:00
ported getUser
This commit is contained in:
parent
fa8a3215b7
commit
2336d2350e
2
ajax/delBookmark.php
Normal file → Executable file
2
ajax/delBookmark.php
Normal file → Executable file
@ -32,7 +32,7 @@ OC_JSON::checkAppEnabled('bookmarks');
|
||||
|
||||
$params=array(
|
||||
htmlspecialchars_decode($_GET["url"]),
|
||||
OC_User::getUser()
|
||||
OCP\USER::getUser()
|
||||
);
|
||||
|
||||
$query = OC_DB::prepare("
|
||||
|
2
ajax/recordClick.php
Normal file → Executable file
2
ajax/recordClick.php
Normal file → Executable file
@ -37,7 +37,7 @@ $query = OC_DB::prepare("
|
||||
AND url LIKE ?
|
||||
");
|
||||
|
||||
$params=array(OC_User::getUser(), htmlspecialchars_decode($_GET["url"]));
|
||||
$params=array(OCP\USER::getUser(), htmlspecialchars_decode($_GET["url"]));
|
||||
$bookmarks = $query->execute($params);
|
||||
|
||||
header( "HTTP/1.1 204 No Content" );
|
||||
|
2
bookmarksHelper.php
Normal file → Executable file
2
bookmarksHelper.php
Normal file → Executable file
@ -101,7 +101,7 @@ function addBookmark($url, $title, $tags='') {
|
||||
$params=array(
|
||||
htmlspecialchars_decode($url),
|
||||
htmlspecialchars_decode($title),
|
||||
OC_User::getUser()
|
||||
OCP\USER::getUser()
|
||||
);
|
||||
$query->execute($params);
|
||||
|
||||
|
@ -37,7 +37,7 @@ class OC_Bookmarks_Bookmarks{
|
||||
//OCP\Util::writeLog('bookmarks', 'findBookmarks ' .$offset. ' '.$sqlSortColumn.' '. $filter.' '. $filterTagOnly ,OCP\Util::DEBUG);
|
||||
$CONFIG_DBTYPE = OC_Config::getValue( 'dbtype', 'sqlite' );
|
||||
|
||||
$params=array(OC_User::getUser());
|
||||
$params=array(OCP\USER::getUser());
|
||||
|
||||
if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){
|
||||
$_gc_separator = ', \' \'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user