]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Directory/lib/alphanav.php
DirectoryPlugin - Group directory mostly working. HTML markup for results needs fixing.
[quix0rs-gnu-social.git] / plugins / Directory / lib / alphanav.php
index 87e2f18f187cd0aa6afc32bd6158f5863d8fd429..60a15ee94227a560cf68372e0b0a17b13296b990 100644 (file)
@@ -108,10 +108,15 @@ class AlphaNav extends Widget
                 $classes .= 'last ';  // last filter in the list
             }
 
-            $href = common_local_url(
-                $actionName,
-                array('filter' => strtolower($filter))
-            );
+            // hack to get around $m->connect(array('action' => 'all, 'nickname' => $nickname));
+            if (strtolower($filter) == 'all') {
+                $href = common_local_url($actionName);
+            } else {
+                $href = common_local_url(
+                    $actionName,
+                    array('filter' => strtolower($filter))
+                );
+            }
 
             $params  = array('href' => $href);