BUG: correct handling of multiple classes

This commit is contained in:
g4b0 2013-05-28 16:25:25 +02:00
parent 80bcf5e713
commit 9fc58feb03

View File

@ -1840,7 +1840,12 @@ class LeftAndMain_TreeNode extends ViewableData {
$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;
}