Skip to content

Commit

Permalink
MDL-72672 lesson: remove unnecessary nowrap
Browse files Browse the repository at this point in the history
This commit also remove some deprecated table properties as well.
  • Loading branch information
lameze authored and junpataleta committed Nov 4, 2021
1 parent 7e69d60 commit 214c399
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions mod/lesson/locallib.php
Expand Up @@ -947,9 +947,6 @@ function lesson_get_overview_report_table_and_data(lesson $lesson, $currentgroup
$table->align[$colcount - 2] = 'left';
}

$table->wrap = [];
$table->wrap = array_pad($table->wrap, $colcount, 'nowrap');

$table->attributes['class'] = 'table table-striped';

// print out the $studentdata array
Expand Down
5 changes: 0 additions & 5 deletions mod/lesson/renderer.php
Expand Up @@ -229,11 +229,6 @@ public function display_edit_collapsed(lesson $lesson, $pageid) {
$table = new html_table();
$table->head = array(get_string('pagetitle', 'lesson'), get_string('qtype', 'lesson'), get_string('jumps', 'lesson'), get_string('actions', 'lesson'));
$table->align = array('left', 'left', 'left', 'center');
$table->wrap = array('', 'nowrap', '', 'nowrap');
$table->tablealign = 'center';
$table->cellspacing = 0;
$table->cellpadding = '2px';
$table->width = '80%';
$table->data = array();

$canedit = has_capability('mod/lesson:edit', context_module::instance($this->page->cm->id));
Expand Down
2 changes: 0 additions & 2 deletions mod/lesson/report.php
Expand Up @@ -227,7 +227,6 @@
get_string('highscore', 'lesson'), get_string('lowscore', 'lesson'),
get_string('hightime', 'lesson'), get_string('lowtime', 'lesson'));
$stattable->align = array('center', 'center', 'center', 'center', 'center', 'center');
$stattable->wrap = array('nowrap', 'nowrap', 'nowrap', 'nowrap', 'nowrap', 'nowrap');
$stattable->attributes['class'] = 'standardtable generaltable';
$stattable->data[] = array($data->avescore, $data->avetime, $data->highscore, $data->lowscore, $data->hightime, $data->lowtime);

Expand All @@ -238,7 +237,6 @@
$stattable->head = array(get_string('averagetime', 'lesson'), get_string('hightime', 'lesson'),
get_string('lowtime', 'lesson'));
$stattable->align = array('center', 'center', 'center');
$stattable->wrap = array('nowrap', 'nowrap', 'nowrap');
$stattable->attributes['class'] = 'standardtable generaltable';
$stattable->data[] = array($data->avetime, $data->hightime, $data->lowtime);
}
Expand Down

0 comments on commit 214c399

Please sign in to comment.