aboutsummaryrefslogtreecommitdiffstats
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
parentb690f955bb712d2cdafbdb3fddb8469cde6b25ae (diff)
downloadphpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.zip
phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.gz
phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.bz2
Fix minical_view config - Thanks Roberto: bug #2800880
-rw-r--r--day.php9
-rw-r--r--month.php10
-rw-r--r--week.php10
3 files changed, 26 insertions, 3 deletions
diff --git a/day.php b/day.php
index 4576bd7..ad01fcd 100644
--- a/day.php
+++ b/day.php
@@ -15,7 +15,14 @@ require_once(BASE.'functions/ical_parser.php');
require_once(BASE.'functions/list_functions.php');
require_once(BASE.'functions/template.php');
-if ($phpiCal_config->minical_view == 'current') $minical_view = 'day';
+$minical_view = $current_view;
+switch ($phpiCal_config->minical_view) {
+ case 'day':
+ case 'week':
+ case 'month':
+ $minical_view = $phpiCal_config->minical_view;
+ break;
+}
$weekstart = 1;
$unix_time = strtotime($getdate);
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);
diff --git a/week.php b/week.php
index 3c974e4..f755491 100644
--- a/week.php
+++ b/week.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 = "week";
+
+$minical_view = $current_view;
+switch ($phpiCal_config->minical_view) {
+ case 'day':
+ case 'week':
+ case 'month':
+ $minical_view = $phpiCal_config->minical_view;
+ break;
+}
$starttime = "0500";
$weekstart = 1;

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