aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authordavef <davefd2@users.sourceforge.net>2005-09-14 00:42:32 +0000
committerdavef <davefd2@users.sourceforge.net>2005-09-14 00:42:32 +0000
commit53a2c2b2694871cd549cd87f37497f794546617b (patch)
tree0c31f8bf9519089fc992a2ea20289e78f7e61abd /functions
parentb9b25b7bbdd025bc7e732daa4b955a27e3a9fadd (diff)
downloadphpicalendar-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.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php2
1 files changed, 1 insertions, 1 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 {

© 2014-2024 Faster IT GmbH | imprint | privacy policy