Skip to content

Commit

Permalink
MDL-28935 use weekdays as calendar table headings
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 20, 2011
1 parent 2953ad1 commit 043c7cb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions calendar/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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>',
Expand All @@ -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());

Expand Down

0 comments on commit 043c7cb

Please sign in to comment.