From: Zach Copley Date: Thu, 10 Mar 2011 22:20:35 +0000 (-0800) Subject: User Directory - set class current on "All" if there is no selected filter X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=24d00941925b0064c1a55cbcdd501ca471c08590;p=quix0rs-gnu-social.git User Directory - set class current on "All" if there is no selected filter --- 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 '; }