]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SearchSub/searchsubmenu.php
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
[quix0rs-gnu-social.git] / plugins / SearchSub / searchsubmenu.php
index 755a3c9a5b121877300e6ce323e78b4fa02bd6b7..2aabb7a5a6cf0f0cc54e7b2c3b8ea26c34f23a1d 100644 (file)
@@ -85,4 +85,26 @@ class SearchSubMenu extends MoreMenu
 
         return $items;
     } 
+
+    function item($actionName, $args, $label, $description, $id=null, $cls=null)
+    {
+        if (empty($id)) {
+            $id = $this->menuItemID($actionName, $args);
+        }
+
+        if ($actionname == 'searchsub') {
+            // Add 'q' as a search param, not part of the url path
+            $url = common_local_url($actionName, array(), $args);
+        } else {
+            $url = common_local_url($actionName, $args);
+        }
+
+        $this->out->menuItem($url,
+                             $label,
+                             $description,
+                             $this->isCurrent($actionName, $args),
+                             $id,
+                             $cls);
+    }
 }
+