summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib/search.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-01 18:50:31 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-01 18:50:31 +0200
commit70cea18cce0fcdb4d8118ff2d7abccc922417a6a (patch)
tree7f8c476cb75b38fea3ed4ad555f00885f6da2670 /apps/calendar/lib/search.php
parentdc7cdda5ccc7d40bf9865e1af5a7846782ec700b (diff)
downloadnextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.tar.gz
nextcloud-server-70cea18cce0fcdb4d8118ff2d7abccc922417a6a.zip
ported getUser
Diffstat (limited to 'apps/calendar/lib/search.php')
-rwxr-xr-x[-rw-r--r--]apps/calendar/lib/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/lib/search.php b/apps/calendar/lib/search.php
index 0e1a9032666..fc544314359 100644..100755
--- a/apps/calendar/lib/search.php
+++ b/apps/calendar/lib/search.php
@@ -1,7 +1,7 @@
<?php
class OC_Search_Provider_Calendar extends OC_Search_Provider{
function search($query){
- $calendars = OC_Calendar_Calendar::allCalendars(OC_User::getUser(), 1);
+ $calendars = OC_Calendar_Calendar::allCalendars(OCP\USER::getUser(), 1);
if(count($calendars)==0 || !OC_App::isEnabled('calendar')){
//return false;
}
@@ -12,7 +12,7 @@ class OC_Search_Provider_Calendar extends OC_Search_Provider{
}else{
$searchquery[] = $query;
}
- $user_timezone = OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezone', date_default_timezone_get());
+ $user_timezone = OC_Preferences::getValue(OCP\USER::getUser(), 'calendar', 'timezone', date_default_timezone_get());
$l = new OC_l10n('calendar');
foreach($calendars as $calendar){
$objects = OC_Calendar_Object::all($calendar['id']);