From 91f60c3c7ba9df94b20e225385a470b505bf42a4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 25 Mar 2008 14:10:01 +0000 Subject: - Patch #234699 by hass: the active CSS class was not always added for the active menu item. --- includes/theme.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') 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'] == '' && drupal_is_front_page()))) { $class .= ' active'; } $output .= '
  • '; -- cgit v1.2.3