MDL-26113 Lesson: temporary fix of page content alignment

That rendering method should not use cell style attribute at all.
Instead, the alignment should be controlled by CSS. However, this will
require more massive changes in the Lesson code to be done by the module
maintainer. As a temporary fix, left alignment is set as it usually
matches the layout that students see.
This commit is contained in:
Joseph Rezeau 2011-02-18 10:43:25 +01:00 committed by David Mudrak
parent 99faefb29b
commit c76cd2ede1

View File

@ -283,7 +283,7 @@ class mod_lesson_renderer extends plugin_renderer_base {
$cell = new html_table_cell();
$cell->colspan = 2;
$cell->style = 'text-align:center';
$cell->style = 'text-align:left';
$cell->text = $page->contents;
$pagetable->data[] = new html_table_row(array($cell));