From: skodak Date: Mon, 13 Jul 2009 20:33:56 +0000 (+0000) Subject: MDL-19755 fixed regression - no class test must be done before adding allign classes ;-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=75904dfa13d202a3f81f208919c6a541d54ef25a;p=moodle.git MDL-19755 fixed regression - no class test must be done before adding allign classes ;-) --- 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(); }