diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:27:24 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-10-17 08:27:24 +0000 |
commit | 4a36c9446a42a48f497cc19df5e9c1cf81e0fb3d (patch) | |
tree | c772cd308d9ebbceb5080c2c1082a18167734188 | |
parent | f37cfb92b2062af956a00e8498c5a14fb37e2d56 (diff) | |
download | brdo-4a36c9446a42a48f497cc19df5e9c1cf81e0fb3d.tar.gz brdo-4a36c9446a42a48f497cc19df5e9c1cf81e0fb3d.tar.bz2 |
#46935 by markus_petrux and edkwh. Don't output empty title attributes.
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 6d71f84c2..26d861d3b 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -698,7 +698,7 @@ function theme_menu_item($mid, $children = '', $leaf = TRUE) { * @ingroup themeable */ function theme_menu_item_link($item, $link_item) { - return l($item['title'], $link_item['path'], isset($item['description']) ? array('title' => $item['description']) : array(), isset($item['query']) ? $item['query'] : NULL); + return l($item['title'], $link_item['path'], !empty($item['description']) ? array('title' => $item['description']) : array(), isset($item['query']) ? $item['query'] : NULL); } /** @@ -725,7 +725,7 @@ function menu_item_link($mid, $theme = TRUE) { $link = array( 'title' => $item['title'], 'href' => $link_item['path'], - 'attributes' => isset($item['description']) ? array('title' => $item['description']) : array() + 'attributes' => !empty($item['description']) ? array('title' => $item['description']) : array() ); } |