From 316c2fb104f90ed9918fc93c669364aae88ef651 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 5 Oct 2005 00:29:13 +0000 Subject: Updated incorrectly built RSS (now validates). --- README | 4 +++- functions/init.inc.php | 8 ++++---- rss/rss.php | 18 ++++++++---------- templates/default/footer.tpl | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README b/README index 149791e..f9a4349 100644 --- a/README +++ b/README @@ -81,11 +81,13 @@ COPYING for more information about our license. Changes: -------- -2.0.2 +2.1 + -RSS feeds display as previously indended. -Updated languages: Finnish -Todo popup respects CHARSET -Allows multiple calendar selection. -Search box can be made to go away. + -Fix for occasionally broken popups. -Various bug fixes. 2.0.1 diff --git a/functions/init.inc.php b/functions/init.inc.php index b5f0018..2cec049 100644 --- a/functions/init.inc.php +++ b/functions/init.inc.php @@ -1,7 +1,7 @@ '); $event_text = str_replace('&','&',$event_text); $event_text = str_replace('&','&',$event_text); - $event_text = urlencode($event_text); #uncomment for shorter event text with ... # $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); $description = stripslashes(urldecode($val["description"])); @@ -139,12 +138,13 @@ $i = 0; #day counter $rss_title = htmlspecialchars ("$dayofweek: $event_text"); $rss_link = htmlspecialchars ("$default_path/day.php?getdate=$getdate&cal=$cal&cpath=$cpath"); + if ($description == '') $description = $event_text; $rss_description = htmlspecialchars ("$dayofweek $event_start: $description"); $rss .= ''."\n"; - $rss .= ''.$event_start.''."\n"; $rss .= ''.$rss_title.''."\n"; - + /* + $rss .= ''.$event_start.''."\n"; $rss .= ''.$dayofweek.''."\n"; $rss .= ''.$event_text.''."\n"; $rss .= ''.$description.''."\n"; @@ -152,14 +152,12 @@ $i = 0; #day counter $rss .= ''.$val['attendee'].''."\n"; $rss .= ''.$val['organizer'].''."\n"; $rss .= ''.$val['status'].''."\n"; - - $rss .= ''.$rss_link.''."\n"; - $rss .= ''.$rss_description.''."\n"; $location = str_replace('&','&',$val['location']); $location = str_replace('&','&',$location); - - $rss .= ''.$location.''; + */ + $rss .= ''.$rss_link.''."\n"; + $rss .= ''.$rss_description.''."\n"; $rss .= ''."\n"; $events_count++; } diff --git a/templates/default/footer.tpl b/templates/default/footer.tpl index bd5256e..e4d0169 100644 --- a/templates/default/footer.tpl +++ b/templates/default/footer.tpl @@ -1,4 +1,4 @@ -

{L_POWERED_BY} PHP iCalendar 2.0.1
+

{L_POWERED_BY} PHP iCalendar 2.1

-- cgit v1.2.3