From 53a2c2b2694871cd549cd87f37497f794546617b Mon Sep 17 00:00:00 2001 From: davef Date: Wed, 14 Sep 2005 00:42:32 +0000 Subject: Changed the "render" window for ical_parser to be the full year when on the year view - prior to this, you'd only get events for 3 months, which three months depending on what getdate was set to. So, basically year.php never displayed all the year events, unless you had the cache turned on. --- functions/ical_parser.php | 2 +- year.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 690fede..5086e07 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -374,7 +374,7 @@ foreach ($cal_filelist as $filename) { $start_date_time = strtotime($start_date); $this_month_start_time = strtotime($this_year.$this_month.'01'); - if ($save_parsed_cals == 'yes' && !$is_webcal) { + if ($current_view == 'year' || ($save_parsed_cals == 'yes' && !$is_webcal)) { $start_range_time = strtotime($this_year.'-01-01 -2 weeks'); $end_range_time = strtotime($this_year.'-12-31 +2 weeks'); } else { diff --git a/year.php b/year.php index f96565c..2f0dd0f 100644 --- a/year.php +++ b/year.php @@ -1,10 +1,10 @@ replace_tags(array( $page->output(); -?> \ No newline at end of file +?> -- cgit v1.2.3