]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Supporting is_action in ElggMenuItem
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 25 Feb 2011 19:28:05 +0000 (19:28 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 25 Feb 2011 19:28:05 +0000 (19:28 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8469 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggMenuItem.php

index 3ba76f246e4deb3b42eb15e1c13c87be9672ba22..784b5670f6787e42d45f9f77d790afd118dd662c 100644 (file)
@@ -416,15 +416,22 @@ class ElggMenuItem {
                }
 
                $vars['text'] = $this->text;
+               
                if ($this->href) {
                        $vars['href'] = $this->href;
                }
+               
                if ($this->linkClass) {
                        $vars['class'] = $this->linkClass;
                }
+               
                if ($this->title) {
                        $vars['title'] = $this->title;
                }
+               
+               if ($this->is_action) {
+                       $vars['is_action'] = $this->is_action;
+               }
 
                return elgg_view('output/url', $vars);
        }