]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3023. Exposed item_class option in the menu item factory. Should we change...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 14:15:12 +0000 (14:15 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 14:15:12 +0000 (14:15 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8999 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggMenuItem.php

index 98a3d7d24071635f5b3ee7d8a8b197352bc495a0..bf6cf2edc2fb2de3f4083e928412c8f26f40a901 100644 (file)
@@ -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;