From 2689498f9dfc027d360b7fdb023fe6c5a4038ec1 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 16 May 2004 06:44:04 +0000 Subject: Fixed month_event_lines, month_bottom popups, and all-day language on event.php. --- functions/template.php | 5 ++--- includes/event.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/functions/template.php b/functions/template.php index 7f79b3a..6e1bf6b 100644 --- a/functions/template.php +++ b/functions/template.php @@ -697,7 +697,6 @@ class Page { $minical_year = date("Y", $fake_getdate_time); $first_of_month = $minical_year.$minical_month."01"; $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day)); - $month_event_lines = 0; $i = 0; $whole_month = TRUE; @@ -799,14 +798,14 @@ class Page { if (!isset($val['event_start'])) { $switch['START_TIME'] = $lang['l_all_day']; $switch['DESCRIPTION'] = urldecode($val['description']); - $switch['EVENT_TEXT'] = openevent($event_calna, '', '', $val, $month_event_lines, 15, '', '', 'psf', $event_url); + $switch['EVENT_TEXT'] = openevent($switch['CALNAME'], '', '', $val, $month_event_lines, 15, '', '', 'psf', $switch['URL']); } else { $event_start = $val['start_unixtime']; $event_end = (isset($val['display_end'])) ? $val['display_end'] : $val["event_end"]; $event_start = date($timeFormat, $val['start_unixtime']); $event_end = date($timeFormat, @strtotime ($event_end)); $switch['START_TIME'] = $event_start . ' - ' . $event_end; - $switch['EVENT_TEXT'] = openevent($event_calna, '', '', $val, $month_event_lines, 15, '', '', 'psf', $event_url); + $switch['EVENT_TEXT'] = openevent($switch['CALNAME'], '', '', $val, 0, 15, '', '', 'psf', $switch['URL']); $switch['DESCRIPTION'] = urldecode($val['description']); } if ($switch['EVENT_TEXT'] != '') { diff --git a/includes/event.php b/includes/event.php index 803403f..fb22ba2 100644 --- a/includes/event.php +++ b/includes/event.php @@ -28,7 +28,7 @@ if (($start) && ($end)) { $event_times = $start . ' - ' . $end; } if ($start == '' && $end == '' && (isset($start) && isset($end))) { - $event_times = $all_day_lang; + $event_times = $lang['l_all_day']; } if ($description) $description = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'\0',$description); -- cgit v1.2.3