summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/settings/guesstimezone.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/settings/guesstimezone.php')
-rwxr-xr-xapps/calendar/ajax/settings/guesstimezone.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/calendar/ajax/settings/guesstimezone.php b/apps/calendar/ajax/settings/guesstimezone.php
index 19aa778472d..13092777b78 100755
--- a/apps/calendar/ajax/settings/guesstimezone.php
+++ b/apps/calendar/ajax/settings/guesstimezone.php
@@ -7,8 +7,8 @@
*/
-OC_JSON::checkLoggedIn();
-OC_JSON::checkAppEnabled('calendar');
+OCP\JSON::checkLoggedIn();
+OCP\JSON::checkAppEnabled('calendar');
$l = OC_L10N::get('calendar');
@@ -18,10 +18,10 @@ $lng = $_GET['long'];
$timezone = OC_Geo::timezone($lat, $lng);
if($timezone == OCP\Config::getUserValue(OCP\USER::getUser(), 'calendar', 'timezone')){
- OC_JSON::success();
+ OCP\JSON::success();
exit;
}
OCP\Config::setUserValue(OCP\USER::getUser(), 'calendar', 'timezone', $timezone);
$message = array('message'=> $l->t('New Timezone:') . $timezone);
-OC_JSON::success($message);
+OCP\JSON::success($message);
?> \ No newline at end of file