]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct link for searchsubs
authorEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 21:32:13 +0000 (17:32 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 21:32:13 +0000 (17:32 -0400)
plugins/SearchSub/SearchSubPlugin.php
plugins/SearchSub/searchsubmenu.php

index 600dae6c16ea2f810eb34115a622ec6fc022d25c..858474240e9c6c1eed3dff6c103db99331825fad 100644 (file)
@@ -108,7 +108,6 @@ class SearchSubPlugin extends Plugin
         $m->connect('search/:search/unsubscribe',
                     array('action' => 'searchunsub'),
                     array('search' => Router::REGEX_TAG));
-
         $m->connect(':nickname/search-subscriptions',
                     array('action' => 'searchsubs'),
                     array('nickname' => Nickname::DISPLAY_FMT));
index 5973eb8b93af25be4dd5031b22d07dee98efa6c0..2aabb7a5a6cf0f0cc54e7b2c3b8ea26c34f23a1d 100644 (file)
@@ -92,9 +92,12 @@ class SearchSubMenu extends MoreMenu
             $id = $this->menuItemID($actionName, $args);
         }
 
-        // Add 'q' as a search param, not part of the url path
-
-        $url = common_local_url($actionName, array(), $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,