Commit 25c77041 authored by catch's avatar catch
Browse files

Issue #41595 by pillarsdotnet, m3avrck, sun et al: Fixed All pager links have...

Issue #41595 by pillarsdotnet, m3avrck, sun et al: Fixed All pager links have an 'active' CSS class.
parent 055900b3
......@@ -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>';
}
/**
......
......@@ -26,6 +26,7 @@ files[] = tests/lock.test
files[] = tests/mail.test
files[] = tests/menu.test
files[] = tests/module.test
files[] = tests/pager.test
files[] = tests/password.test
files[] = tests/path.test
files[] = tests/registry.test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment