From fc81f9ebde033c58f729f392dba7914112d40720 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Sun, 30 Oct 2005 01:32:44 +0000 Subject: Added support for recursively searching for calendars in your $calendar_path and the new iCal calendar repository structure. The calendars are still referenced by calendar name, so all URLs are unchanged. Refactored the date parsing code out of ical_parser.php and into date_functions.php. Minor logic changes to the parser to correctly populate the TODO date and time values. Refactored the calendar name code into a new getCalendarName() function, since calendar names may no longer be determined solely by filename if using an iCal repository. Template code updated to match. Added calls to stripslashes() for calendar text data, such as the summaries and descriptions. Also put stripslashes() into people data, since people's names may contain escaped characters. --- functions/list_functions.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'functions/list_functions.php') diff --git a/functions/list_functions.php b/functions/list_functions.php index 85a4ebd..5d62fb7 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -2,12 +2,13 @@ function list_jumps() { global $second_offset, $lang, $cal; + $calName = getCalendarName($cal); $today = date('Ymd', strtotime("now + $second_offset seconds")); $return = ''; - $return .= ''; - $return .= ''; - $return .= ''; - $return .= ''; + $return .= ''; + $return .= ''; + $return .= ''; + $return .= ''; return $return; } -- cgit v1.2.3