1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-30 09:18:09 +02:00

corrent month in calendar title

This fixes 
This commit is contained in:
Jimako 2014-08-26 09:11:17 +02:00
parent 4265dc5171
commit 63ebe9d251

@ -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 = "<div class='item {$active}'>";
$text .= "<h5>".$marray[$req_month]." ".$req_year."</h5>";
$text .= "<h5>".$marray[$req_month - 1]." ".$req_year."</h5>";
$text .= $calendar;
$text .= "</div>";
}
@ -153,4 +153,4 @@ function calendar($req_day, $req_month, $req_year, $links = NULL, $ws = "sunday"
return $text;
}
?>
?>