Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUG: correct handling of multiple classes

  • Loading branch information...
commit 9fc58feb03c0b678a72a339c433908adb82257ab 1 parent 80bcf5e
g4b0 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 admin/code/LeftAndMain.php
View
7 admin/code/LeftAndMain.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.