diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-03-25 14:10:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-03-25 14:10:01 +0000 |
commit | 91f60c3c7ba9df94b20e225385a470b505bf42a4 (patch) | |
tree | 257f5377fd8b7bfd3ebe889c90e76ea9f2b32742 | |
parent | 597194fa5816901c98894c3f854575e5885df7c2 (diff) | |
download | brdo-91f60c3c7ba9df94b20e225385a470b505bf42a4.tar.gz brdo-91f60c3c7ba9df94b20e225385a470b505bf42a4.tar.bz2 |
- Patch #234699 by hass: the active CSS class was not always added for the active menu item.
-rw-r--r-- | includes/theme.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index ea55154f6..8fe204910 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1103,7 +1103,7 @@ function theme_links($links, $attributes = array('class' => 'links')) { if ($i == $num_links) { $class .= ' last'; } - if (isset($link['href']) && $link['href'] == $_GET['q']) { + if (isset($link['href']) && ($link['href'] == $_GET['q'] || ($link['href'] == '<front>' && drupal_is_front_page()))) { $class .= ' active'; } $output .= '<li class="'. $class .'">'; |