summaryrefslogtreecommitdiff
path: root/includes/pager.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-03-13 12:47:23 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2012-03-13 12:47:23 -0700
commitde17f5a5ebd074fa7f773ea2aefa9199c4671485 (patch)
tree233cfa442d77e408e8e664232855fc1c34549d8c /includes/pager.inc
parent8f096c6b62b11f04a847363f5fe173c021fae9be (diff)
downloadbrdo-de17f5a5ebd074fa7f773ea2aefa9199c4671485.tar.gz
brdo-de17f5a5ebd074fa7f773ea2aefa9199c4671485.tar.bz2
Issue #41595 by pillarsdotnet, sun, m3avrck, oadaeh, yched, musicnode | Wesley Tanaka: Fixed All pager links have an 'active' CSS class.
Diffstat (limited to 'includes/pager.inc')
-rw-r--r--includes/pager.inc8
1 files changed, 7 insertions, 1 deletions
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 '<a' . drupal_attributes($attributes) . '>' . check_plain($text) . '</a>';
}
/**