From 63ebe9d25191cb88eaac6dd45d43eac61017d72f Mon Sep 17 00:00:00 2001 From: Jimako Date: Tue, 26 Aug 2014 09:11:17 +0200 Subject: [PATCH] corrent month in calendar title This fixes #741 --- e107_plugins/blogcalendar_menu/calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/blogcalendar_menu/calendar.php b/e107_plugins/blogcalendar_menu/calendar.php index 34041a7e5..a1d81ae9c 100644 --- a/e107_plugins/blogcalendar_menu/calendar.php +++ b/e107_plugins/blogcalendar_menu/calendar.php @@ -142,7 +142,7 @@ function calendar($req_day, $req_month, $req_year, $links = NULL, $ws = "sunday" { $active = date("n-Y") == ($req_month."-".$req_year) ? 'active' : ''; $text = "
"; - $text .= "
".$marray[$req_month]." ".$req_year."
"; + $text .= "
".$marray[$req_month - 1]." ".$req_year."
"; $text .= $calendar; $text .= "
"; } @@ -153,4 +153,4 @@ function calendar($req_day, $req_month, $req_year, $links = NULL, $ws = "sunday" return $text; } -?> \ No newline at end of file +?>