From 24d00941925b0064c1a55cbcdd501ca471c08590 Mon Sep 17 00:00:00 2001
From: Zach Copley <zach@status.net>
Date: Thu, 10 Mar 2011 14:20:35 -0800
Subject: [PATCH] User Directory - set class current on "All" if there is no
 selected filter

---
 plugins/Directory/lib/alphanav.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/Directory/lib/alphanav.php b/plugins/Directory/lib/alphanav.php
index dadb589094..87e2f18f18 100644
--- a/plugins/Directory/lib/alphanav.php
+++ b/plugins/Directory/lib/alphanav.php
@@ -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 ';
             }
-- 
2.39.5