| @@ 2328-2329 (lines=2) @@ | ||
| 2325 | //Handle leap year |
|
| 2326 | $numberofdays = array (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 2327 | ||
| 2328 | if(($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) |
|
| 2329 | $numberofdays[2] = 29; |
|
| 2330 | ||
| 2331 | //Get the first day of the month |
|
| 2332 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|
| @@ 3127-3128 (lines=2) @@ | ||
| 3124 | global $DaysShort, $course_path; |
|
| 3125 | //Handle leap year |
|
| 3126 | $numberofdays = array (0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 3127 | if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) |
|
| 3128 | $numberofdays[2] = 29; |
|
| 3129 | //Get the first day of the month |
|
| 3130 | $dayone = getdate(mktime(0, 0, 0, $month, 1, $year)); |
|
| 3131 | //Start the week on monday |
|