diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-08-13 22:30:10 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-08-13 22:30:10 +0000 |
commit | 8e9c38330bb0c0cf57eab791302008d9eeaab300 (patch) | |
tree | 6b13889edc72fa7664fa22461f053383aa350873 /functions | |
parent | fa4b059e70be97311d08d6fb43e385601824e1e5 (diff) | |
download | phpicalendar-8e9c38330bb0c0cf57eab791302008d9eeaab300.tar.gz phpicalendar-8e9c38330bb0c0cf57eab791302008d9eeaab300.tar.bz2 phpicalendar-8e9c38330bb0c0cf57eab791302008d9eeaab300.zip |
Fix for [ 999141 ] 2.0a year.php month parse error
Diffstat (limited to 'functions')
-rw-r--r-- | functions/template.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functions/template.php b/functions/template.php index f376bab..d2f5a36 100644 --- a/functions/template.php +++ b/functions/template.php @@ -727,6 +727,7 @@ class Page { $start_day = strtotime($week_start_day); $month_title = localizeDate ($dateFormat_month, $fake_getdate_time); + $month_date = date ('Ymd', $fake_getdate_time); if ($type == 'small') { $langtype = $daysofweekreallyshort_lang; @@ -818,12 +819,13 @@ class Page { $checkagain = date ("m", $start_day); if ($checkagain != $minical_month) $whole_month = FALSE; } - } while ($whole_month == TRUE); + } while ($whole_month == TRUE); $return = str_replace('<!-- loop weekday on -->'.$match1[1].'<!-- loop weekday off -->', $weekday_loop, $template_p); $return = preg_replace('!<\!-- loop monthweeks on -->(.*)<\!-- loop monthweeks off -->!is', $middle, $return); $return = str_replace('{MONTH_TITLE}', $month_title, $return); $return = str_replace('{CAL}', $cal, $return); + $return = str_replace('{MONTH_DATE}', $month_date, $return); return $return; } |