Skip to content
Browse files

Merge branch 'wip-MDL-36367-s23' of git://github.com/phalacee/moodle …

…into MOODLE_23_STABLE
  • Loading branch information...
2 parents cd78025 + 4769f19 commit fdd6de91770194581178f3459d3b15f3822b41ab @danpoltawski danpoltawski committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 calendar/renderer.php
View
10 calendar/renderer.php
@@ -460,7 +460,7 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
// Paddding (the first week may have blank days in the beginning)
for($i = $display->minwday; $i < $startwday; ++$i) {
$cell = new html_table_cell('&nbsp;');
- $cell->attributes = array('class'=>'nottoday');
+ $cell->attributes = array('class'=>'nottoday dayblank');
$row->cells[] = $cell;
}
@@ -519,10 +519,10 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
}
// Special visual fx for today
- if($display->thismonth && $calendar->day == $calendar->day) {
- $cellclasses[] = 'today';
+ if ($display->thismonth && $calendar->day == $date['mday']) {
+ $cellclasses[] = 'day today';
} else {
- $cellclasses[] = 'nottoday';
+ $cellclasses[] = 'day nottoday';
}
$cell->attributes = array('class'=>join(' ',$cellclasses));
@@ -553,7 +553,7 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
// Paddding (the last week may have blank days at the end)
for($i = $dayweek; $i <= $display->maxwday; ++$i) {
$cell = new html_table_cell('&nbsp;');
- $cell->attributes = array('class'=>'nottoday');
+ $cell->attributes = array('class'=>'nottoday dayblank');
$row->cells[] = $cell;
}
$table->data[] = $row;

0 comments on commit fdd6de9

Please sign in to comment.
Something went wrong with that request. Please try again.