aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-05-28 16:33:44 +0000
committerChad Little <clittle@users.sourceforge.net>2004-05-28 16:33:44 +0000
commitb254d095fd02666b87d124e78063665b4ae55330 (patch)
treecfd58e4da87e74fd5986d5ab754a2157164861c4
parentef687e7ade702bf9b684c9651cfa1463f9c0adaa (diff)
downloadphpicalendar-b254d095fd02666b87d124e78063665b4ae55330.tar.gz
phpicalendar-b254d095fd02666b87d124e78063665b4ae55330.tar.bz2
phpicalendar-b254d095fd02666b87d124e78063665b4ae55330.zip
FIxed a bug not allowing all combined to cache.
-rw-r--r--config.inc.php1
-rw-r--r--functions/ical_parser.php6
-rw-r--r--functions/list_functions.php2
3 files changed, 4 insertions, 5 deletions
diff --git a/config.inc.php b/config.inc.php
index 44919e2..f563595 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -5,7 +5,6 @@
// To set values, change the text between the single quotes
// Follow instructions to the right for detailed information
-$style_sheet = 'silver'; // Themes support - silver, red, green, orange, grey, tan
$template = 'default'; // Template support
$default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year'
$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current'
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 5a9f3f1..3a85726 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -155,9 +155,9 @@ foreach ($cal_filelist as $filename) {
case 'END:VEVENT':
- if (!isset($master_array[-3][$calnumber])) $master_array[-3][$calnumber] = $actual_calname;
- if (!isset($master_array[-4][$calnumber]['mtime'])) $master_array[-4][$calnumber]['mtime'] = $actual_mtime;
- if (!isset($master_array[-4][$calnumber]['filename'])) $master_array[-4][$calnumber]['filename'] = $filename;
+ if (!isset($master_array['-3'][$calnumber])) $master_array['-3'][$calnumber] = $actual_calname;
+ if (!isset($master_array['-4'][$calnumber]['mtime'])) $master_array['-4'][$calnumber]['mtime'] = $actual_mtime;
+ if (!isset($master_array['-4'][$calnumber]['filename'])) $master_array['-4'][$calnumber]['filename'] = $filename;
if (!isset($url)) $url = '';
if (!isset($type)) $type = '';
diff --git a/functions/list_functions.php b/functions/list_functions.php
index 72b8008..cfc1745 100644
--- a/functions/list_functions.php
+++ b/functions/list_functions.php
@@ -12,7 +12,7 @@ function list_jumps() {
function list_calcolors() {
global $template, $master_array;
- foreach ($master_array[-3] as $key => $val) {
+ foreach ($master_array['-3'] as $key => $val) {
$return .= '<img src="templates/'.$template.'/images/monthdot_'.$key.'.gif" alt="" /> '.$val.'<br />';
}
return $return;

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