]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
User Directory - set class current on "All" if there is no selected filter
authorZach Copley <zach@status.net>
Thu, 10 Mar 2011 22:20:35 +0000 (14:20 -0800)
committerZach Copley <zach@status.net>
Thu, 10 Mar 2011 22:20:35 +0000 (14:20 -0800)
plugins/Directory/lib/alphanav.php

index dadb58909442c65409851c4bf1f6ad986ae45ad1..87e2f18f187cd0aa6afc32bd6158f5863d8fd429 100644 (file)
@@ -128,8 +128,8 @@ class AlphaNav extends Widget
             $current = $this->action->arg('filter');
 
             // Highlight the selected filter. If there is no selected
-            // filter, highlight the first filter in the list
-            if (!isset($current) && $i == 0
+            // filter, highlight the last filter in the list (all)
+            if (!isset($current) && $i == ($size - 1)
                 || $current === strtolower($filter)) {
                 $classes .= 'current ';
             }