aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorJason Oster <parasytic@users.sourceforge.net>2009-06-22 14:31:03 +0000
committerJason Oster <parasytic@users.sourceforge.net>2009-06-22 14:31:03 +0000
commit82fd517bbdc56884176b6d138fe0a890e179c3cc (patch)
tree7d03b1e6af079d34846a1487cc6d988e02305eab /month.php
parentb690f955bb712d2cdafbdb3fddb8469cde6b25ae (diff)
downloadphpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.gz
phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.bz2
phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.zip
Fix minical_view config - Thanks Roberto: bug #2800880
Diffstat (limited to 'month.php')
-rw-r--r--month.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/month.php b/month.php
index 9aec865..04516bd 100644
--- a/month.php
+++ b/month.php
@@ -5,7 +5,15 @@ require_once(BASE.'functions/ical_parser.php');
require_once(BASE.'functions/list_functions.php');
require_once(BASE.'functions/template.php');
header("Content-Type: text/html; charset=$phpiCal_config->charset");
-if ($phpiCal_config->minical_view == 'current') $minical_view = 'month';
+
+$minical_view = $current_view;
+switch ($phpiCal_config->minical_view) {
+ case 'day':
+ case 'week':
+ case 'month':
+ $minical_view = $phpiCal_config->minical_view;
+ break;
+}
$unix_time = strtotime($getdate);
$today_today = date('Ymd', time() + $phpiCal_config->second_offset);

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