From a3cb04013e8cc527c88c94045e9370e8f21d2be2 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 9 Dec 2011 21:56:03 +0100 Subject: Update OC_VObject --- apps/calendar/lib/object.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'apps/calendar') diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php index 1e834241f63..1c145003511 100644 --- a/apps/calendar/lib/object.php +++ b/apps/calendar/lib/object.php @@ -460,7 +460,7 @@ class OC_Calendar_Object{ { $title = $request["title"]; $location = $request["location"]; - $categories = isset($request["categories"]) ? $request["categories"] : null; + $categories = isset($request["categories"]) ? $request["categories"] : array(); $allday = isset($request["allday"]); $from = $request["from"]; $to = $request["to"]; @@ -511,20 +511,9 @@ class OC_Calendar_Object{ } unset($vevent->DURATION); - $vevent->setString('LOCATION', $location); - - if($description != ""){ - $vevent->DESCRIPTION = $description; - }else{ - unset($vevent->DESCRIPTION); - } - - if(!empty($categories)){ - $vevent->CATEGORIES = join(',', $categories); - }else{ - unset($vevent->CATEGORIES); - } + $vevent->setString('DESCRIPTION', $description); + $vevent->setString('CATEGORIES', join(',', $categories)); /*if($repeat == "true"){ $vevent->RRULE = $repeat; -- cgit v1.2.3 From 1746cba249328d92cf22bd81e367dd35dabed60c Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 9 Dec 2011 22:36:39 +0100 Subject: Some small changes --- apps/calendar/js/calendar.js | 5 ++--- lib/updater.php | 10 ---------- 2 files changed, 2 insertions(+), 13 deletions(-) (limited to 'apps/calendar') diff --git a/apps/calendar/js/calendar.js b/apps/calendar/js/calendar.js index 005e359f8eb..c3644b53704 100644 --- a/apps/calendar/js/calendar.js +++ b/apps/calendar/js/calendar.js @@ -7,7 +7,6 @@ */ Calendar={ - space:' ', UI:{ startEventDialog:function(){ $('.tipsy').remove(); @@ -271,9 +270,9 @@ Calendar={ var url; if (calendarid == 'new'){ - url = "ajax/createcalendar.php"; + url = OC.filePath('calendar', 'ajax', 'createcalendar.php'); }else{ - url = "ajax/updatecalendar.php"; + url = OC.filePath('calendar', 'ajax', 'updatecalendar.php'); } $.post(url, { id: calendarid, name: displayname, active: active, description: description, color: calendarcolor }, function(data){ diff --git a/lib/updater.php b/lib/updater.php index e4db719a62c..cc4a4602539 100644 --- a/lib/updater.php +++ b/lib/updater.php @@ -52,13 +52,9 @@ class OC_Updater{ $tmp['url'] = $data->url; $tmp['web'] = $data->web; - return $tmp; - } - - public static function ShowUpdatingHint(){ $data=OC_Updater::check(); if(isset($data['version']) and $data['version']<>'') { @@ -67,10 +63,8 @@ class OC_Updater{ $txt='Your ownCloud is up to date'; } return($txt); - } - /** * do ownCloud update */ @@ -83,9 +77,5 @@ class OC_Updater{ //update version in config } - } - - - ?> -- cgit v1.2.3