aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
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