diff options
Diffstat (limited to 'apps/calendar/ajax/import/import.php')
-rwxr-xr-x[-rw-r--r--] | apps/calendar/ajax/import/import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/ajax/import/import.php b/apps/calendar/ajax/import/import.php index 5848cac448d..eda34099aba 100644..100755 --- a/apps/calendar/ajax/import/import.php +++ b/apps/calendar/ajax/import/import.php @@ -19,11 +19,11 @@ if(is_writable('import_tmp/')){ } $file = OC_Filesystem::file_get_contents($_POST['path'] . '/' . $_POST['file']); if($_POST['method'] == 'new'){ - $id = OC_Calendar_Calendar::addCalendar(OC_User::getUser(), $_POST['calname']); + $id = OC_Calendar_Calendar::addCalendar(OCP\USER::getUser(), $_POST['calname']); OC_Calendar_Calendar::setCalendarActive($id, 1); }else{ $calendar = OC_Calendar_App::getCalendar($_POST['id']); - if($calendar['userid'] != OC_USER::getUser()){ + if($calendar['userid'] != OCP\USER::getUser()){ OC_JSON::error(); exit(); } |