...
|
...
|
@@ -203,10 +203,7 @@ function wpjam_array_push($array, $data=null, $key=false){ |
|
|
}
|
|
|
}
|
|
|
|
|
|
if (!function_exists('cal_days_in_month'))
|
|
|
{
|
|
|
function cal_days_in_month($calendar, $month, $year)
|
|
|
{
|
|
|
return date('t', mktime(0, 0, 0, $month, 1, $year));
|
|
|
}
|
|
|
function days_in_month($month, $year) {
|
|
|
// calculate number of days in a month
|
|
|
return $month == 2 ? ($year % 4 ? 28 : ($year % 100 ? 29 : ($year % 400 ? 28 : 29))) : (($month - 1) % 7 % 2 ? 30 : 31);
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|