From 75904dfa13d202a3f81f208919c6a541d54ef25a Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 13 Jul 2009 20:33:56 +0000 Subject: [PATCH] MDL-19755 fixed regression - no class test must be done before adding allign classes ;-) --- lib/outputlib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index 5f545c1c64..2381dbe70e 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -2936,6 +2936,9 @@ class html_table extends moodle_html_component { } } + if (empty($this->classes)) { // must be done before align + $this->set_classes(array('generaltable')); + } if (!empty($this->tablealign)) { $this->add_class('boxalign' . $this->tablealign); } @@ -2944,9 +2947,6 @@ class html_table extends moodle_html_component { } else { $this->rotateheaders = false; // Makes life easier later. } - if (empty($this->classes)) { - $this->set_classes(array('generaltable')); - } parent::prepare(); } -- 2.39.5