| @@ 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 |
|
| @@ 2539-2540 (lines=2) @@ | ||
| 2536 | //Handle leap year |
|
| 2537 | $numberofdays = array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); |
|
| 2538 | ||
| 2539 | if (($year % 400 == 0) or ($year % 4 == 0 and $year % 100 <> 0)) { |
|
| 2540 | $numberofdays[2] = 29; |
|
| 2541 | } |
|
| 2542 | ||
| 2543 | //Get the first day of the month |
|