aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/classes/ElggMenuItem.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 784b5670f..e0e5d0952 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -116,6 +116,11 @@ class ElggMenuItem {
unset($options['context']);
}
+ if (isset($options['class'])) {
+ $item->setLinkClass($options['class']);
+ unset($options['class']);
+ }
+
foreach ($options as $key => $value) {
$item->$key = $value;
}
@@ -422,9 +427,9 @@ class ElggMenuItem {
}
if ($this->linkClass) {
- $vars['class'] = $this->linkClass;
+ $vars['class'] = $this->getLinkClass();
}
-
+
if ($this->title) {
$vars['title'] = $this->title;
}