1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-02-28 00:54:31 +01:00

ported getUser

This commit is contained in:
Frank Karlitschek 2012-05-01 18:50:31 +02:00
parent fa8a3215b7
commit 2336d2350e
4 changed files with 4 additions and 4 deletions

2
ajax/delBookmark.php Normal file → Executable file
View 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
View 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
View 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);

View File

@ -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 = ', \' \'';