mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
New features implemented:
* Configurable defaults for the calendar upcoming events lookahead and maximum upcoming events displayed (bug #1623) * Configurable setting for which days of the week are treated as weekend (bug #1919) * Configurable setting for which day starts the week (the admin can now set this as the default for new users and guests without messing with language packs) (no butracker issue)
This commit is contained in:
parent
54598fb04e
commit
bb4a2e85c0
7 changed files with 106 additions and 14 deletions
|
@ -368,7 +368,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users) {
|
|||
$cell = '';
|
||||
$dayhref = calendar_get_link_href(CALENDAR_URL.'view.php?view=day&', $day, $m, $y);
|
||||
|
||||
if($dayweek % 7 == 0 || $dayweek % 7 == 6) {
|
||||
if(CALENDAR_WEEKEND & (1 << ($dayweek % 7))) {
|
||||
// Weekend. This is true no matter what the exact range is.
|
||||
$class = 'cal_weekend';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue