diff options
author | davef <davefd2@users.sourceforge.net> | 2005-09-14 00:42:32 +0000 |
---|---|---|
committer | davef <davefd2@users.sourceforge.net> | 2005-09-14 00:42:32 +0000 |
commit | 53a2c2b2694871cd549cd87f37497f794546617b (patch) | |
tree | 0c31f8bf9519089fc992a2ea20289e78f7e61abd | |
parent | b9b25b7bbdd025bc7e732daa4b955a27e3a9fadd (diff) | |
download | phpicalendar-53a2c2b2694871cd549cd87f37497f794546617b.tar.gz phpicalendar-53a2c2b2694871cd549cd87f37497f794546617b.tar.bz2 phpicalendar-53a2c2b2694871cd549cd87f37497f794546617b.zip |
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.
-rw-r--r-- | functions/ical_parser.php | 2 | ||||
-rw-r--r-- | 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 { @@ -1,10 +1,10 @@ <?php define('BASE', './'); +$current_view = 'year'; require_once(BASE.'functions/ical_parser.php'); require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$charset"); -$current_view = 'year'; ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); $this_day = $day_array2[3]; @@ -51,4 +51,4 @@ $page->replace_tags(array( $page->output(); -?>
\ No newline at end of file +?> |