From de17f5a5ebd074fa7f773ea2aefa9199c4671485 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 13 Mar 2012 12:47:23 -0700 Subject: Issue #41595 by pillarsdotnet, sun, m3avrck, oadaeh, yched, musicnode | Wesley Tanaka: Fixed All pager links have an 'active' CSS class. --- includes/pager.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/pager.inc b/includes/pager.inc index a5d3e6be0..c060d0e7c 100644 --- a/includes/pager.inc +++ b/includes/pager.inc @@ -630,7 +630,13 @@ function theme_pager_link($variables) { } } - return l($text, $_GET['q'], array('attributes' => $attributes, 'query' => $query)); + // @todo l() cannot be used here, since it adds an 'active' class based on the + // path only (which is always the current path for pager links). Apparently, + // none of the pager links is active at any time - but it should still be + // possible to use l() here. + // @see http://drupal.org/node/1410574 + $attributes['href'] = url($_GET['q'], array('query' => $query)); + return '' . check_plain($text) . ''; } /** -- cgit v1.2.3