diff options
author | Jason Oster <parasytic@users.sourceforge.net> | 2009-06-22 14:31:03 +0000 |
---|---|---|
committer | Jason Oster <parasytic@users.sourceforge.net> | 2009-06-22 14:31:03 +0000 |
commit | 82fd517bbdc56884176b6d138fe0a890e179c3cc (patch) | |
tree | 7d03b1e6af079d34846a1487cc6d988e02305eab /week.php | |
parent | b690f955bb712d2cdafbdb3fddb8469cde6b25ae (diff) | |
download | phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.gz phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.tar.bz2 phpicalendar-82fd517bbdc56884176b6d138fe0a890e179c3cc.zip |
Fix minical_view config - Thanks Roberto: bug #2800880
Diffstat (limited to 'week.php')
-rw-r--r-- | week.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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; |