Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
4a36c944
Commit
4a36c944
authored
Oct 17, 2006
by
drumm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#46935
by markus_petrux and edkwh. Don't output empty title attributes.
parent
f37cfb92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
includes/menu.inc
includes/menu.inc
+2
-2
No files found.
includes/menu.inc
View file @
4a36c944
...
...
@@ -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
()
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment