aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 14:15:12 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-04-14 14:15:12 +0000
commit842031dd358282f608c232094422cd281117c21f (patch)
treebd216e552a829caecd4a491c9c5fd4c2400a8e41 /engine
parent6f6f9abc3d45dc305ab8ea8dfd53f7f975982228 (diff)
downloadelgg-842031dd358282f608c232094422cd281117c21f.tar.gz
elgg-842031dd358282f608c232094422cd281117c21f.tar.bz2
Refs #3023. Exposed item_class option in the menu item factory. Should we change 'class' to 'link_class' to avoid confusion?
git-svn-id: http://code.elgg.org/elgg/trunk@8999 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggMenuItem.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 98a3d7d24..bf6cf2edc 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -127,6 +127,11 @@ class ElggMenuItem {
$item->setLinkClass($options['class']);
unset($options['class']);
}
+
+ if (isset($options['item_class'])) {
+ $item->setItemClass($options['item_class']);
+ unset($options['item_class']);
+ }
foreach ($options as $key => $value) {
$item->$key = $value;