Skip to content

Commit

Permalink
BUG: correct handling of multiple classes
Browse files Browse the repository at this point in the history
  • Loading branch information
g4b0 committed May 28, 2013
1 parent 80bcf5e commit 9fc58fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/code/LeftAndMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,12 @@ public function getClasses() {
$classes = $this->obj->CMSTreeClasses();
if($this->isCurrent) $classes .= " current";
$flags = $this->obj->hasMethod('getStatusFlags') ? $this->obj->getStatusFlags() : false;
if($flags) $classes .= ' status-' . implode('status-', array_keys($flags));
if ($flags) {
$statuses = array_keys($flags);
foreach ($statuses as $s) {
$classes .= ' status-' . $s;
}
}
return $classes;
}

Expand Down

0 comments on commit 9fc58fe

Please sign in to comment.