diff --git a/fp-plugins/calendar/plugin.calendar.php b/fp-plugins/calendar/plugin.calendar.php index c4756f3..1b4cde0 100755 --- a/fp-plugins/calendar/plugin.calendar.php +++ b/fp-plugins/calendar/plugin.calendar.php @@ -15,6 +15,10 @@ // see example at http://keithdevens.com/weblog // License: http://keithdevens.com/software/license function generate_calendar($year, $month, $days = array(), $day_name_length = 3, $month_href = NULL, $first_day = 0, $pn = array()) { + + global $fp_config; + $characterset = $config ['charset']; + $first_of_month = gmmktime(0, 0, 0, $month, 1, $year); // remember that mktime will automatically correct if invalid dates are entered // for instance, mktime(0,0,0,12,32,1997) will be the date for Jan 1, 1998 @@ -44,7 +48,7 @@ function generate_calendar($year, $month, $days = array(), $day_name_length = 3, if ($day_name_length) { // if the day names should be shown ($day_name_length > 0) // if day_name_length is >3, the full name of the day will be printed foreach ($day_names as $d) - $calendar .= '