| @@ 3191-3192 (lines=2) @@ | ||
| 3188 | global $DaysShort, $course_path; |
|
| 3189 | //Handle leap year |
|
| 3190 | $numberofdays = array (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 3191 | if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) |
|
| 3192 | $numberofdays[2] = 29; |
|
| 3193 | //Get the first day of the month |
|
| 3194 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|
| 3195 | //Start the week on monday |
|
| @@ 2336-2337 (lines=2) @@ | ||
| 2333 | //Handle leap year |
|
| 2334 | $numberofdays = array (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 2335 | ||
| 2336 | if(($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) |
|
| 2337 | $numberofdays[2] = 29; |
|
| 2338 | ||
| 2339 | //Get the first day of the month |
|
| 2340 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|