1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Merge pull request #744 from Jimmi08/patch-4

#741 - corrent month in calendar title
This commit is contained in:
Tijn Kuyper
2014-08-26 15:56:59 +02:00

View File

@@ -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;
}
?>
?>