Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
07d53792
Commit
07d53792
authored
May 28, 2004
by
Dries Buytaert
Browse files
- Patch
#8089
by matthias: make sure aliased links can be flagged as 'active'.
parent
8c75cda0
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
07d53792
...
...
@@ -1204,7 +1204,7 @@ function drupal_attributes($attributes = array()) {
}
function
l
(
$text
,
$url
,
$attributes
=
array
(),
$query
=
NULL
,
$fragment
=
NULL
,
$absolute
=
NULL
)
{
if
(
$url
==
$_GET
[
'q'
])
{
if
(
drupal_get_normal_path
(
$url
)
==
$_GET
[
'q'
])
{
if
(
isset
(
$attributes
[
'class'
]))
{
$attributes
[
'class'
]
.
=
' active'
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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