diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-08-08 05:55:17 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-08-08 05:55:17 +0000 |
commit | 24757cf84fd2e4642ed68a0d48bb8ff75cc8d938 (patch) | |
tree | daa4acf1d1e92ed71fd0ae72eaebd8414476d8f2 /functions/list_functions.php | |
parent | 0b3393545875f1442ea270bd54ced763b6fe54ba (diff) | |
download | phpicalendar-24757cf84fd2e4642ed68a0d48bb8ff75cc8d938.tar.gz phpicalendar-24757cf84fd2e4642ed68a0d48bb8ff75cc8d938.tar.bz2 phpicalendar-24757cf84fd2e4642ed68a0d48bb8ff75cc8d938.zip |
Cleaned up calendar colors and added error message for caching.
Diffstat (limited to 'functions/list_functions.php')
-rw-r--r-- | functions/list_functions.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functions/list_functions.php b/functions/list_functions.php index cfc1745..1927a68 100644 --- a/functions/list_functions.php +++ b/functions/list_functions.php @@ -11,9 +11,12 @@ function list_jumps() { } function list_calcolors() { - global $template, $master_array; + global $template, $master_array, $unique_colors; + $i = 1; foreach ($master_array['-3'] as $key => $val) { - $return .= '<img src="templates/'.$template.'/images/monthdot_'.$key.'.gif" alt="" /> '.$val.'<br />'; + if ($i > $unique_colors) $i = 1; + $return .= '<img src="templates/'.$template.'/images/monthdot_'.$i.'.gif" alt="" /> '.$val.'<br />'; + $i++; } return $return; } |