Skip to content

Commit

Permalink
MDL-19755 fixed regression - no class test must be done before adding…
Browse files Browse the repository at this point in the history
… allign classes ;-)
  • Loading branch information
skodak committed Jul 13, 2009
1 parent 480b072 commit 75904df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/outputlib.php
Expand Up @@ -2936,6 +2936,9 @@ public function prepare() {

}
}
if (empty($this->classes)) { // must be done before align
$this->set_classes(array('generaltable'));
}
if (!empty($this->tablealign)) {
$this->add_class('boxalign' . $this->tablealign);
}
Expand All @@ -2944,9 +2947,6 @@ public function prepare() {
} else {
$this->rotateheaders = false; // Makes life easier later.
}
if (empty($this->classes)) {
$this->set_classes(array('generaltable'));
}
parent::prepare();
}

Expand Down

0 comments on commit 75904df

Please sign in to comment.