Skip to content
Browse files

MDL-28935 use weekdays as calendar table headings

  • Loading branch information...
1 parent 68cfdb7 commit 23eccfcd77c62909192114a072a2f64832593e07 @skodak skodak committed with stronk7
Showing with 2 additions and 5 deletions.
  1. +2 −5 calendar/renderer.php
View
7 calendar/renderer.php
@@ -432,8 +432,6 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
$week = 1;
$dayweek = $startwday;
- $row = new html_table_row(array());
-
// Create an array of all the week days.
$wdays = array(0 => '<strong>'. get_string('sunday', 'calendar'). '</strong>',
1 => '<strong>'. get_string('monday', 'calendar'). '</strong>',
@@ -452,9 +450,8 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
array_push($wdays, $wdays_end);
}
- // Now we set the (modified) array to the table cells to be displayed.
- $row->cells = $wdays;
- $table->data[] = $row;
+ // Now we set the (modified) array to the table header to be displayed.
+ $table->head = $wdays;
$row = new html_table_row(array());

0 comments on commit 23eccfc

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