Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
96c913dc
Commit
96c913dc
authored
Dec 23, 2006
by
Dries
Browse files
- Patch
#88707
by chx: Make menu_set_active_item a complete inner redirection.
parent
53372323
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/menu.inc
View file @
96c913dc
...
...
@@ -437,10 +437,6 @@ function menu_set_active_item($path = NULL) {
}
else
{
$_GET
[
'q'
]
=
$path
;
// If we change ?q= we need to rebuild the contextual menu items
// because they are often variable depending on the value of ?q=.
_menu_append_contextual_items
();
}
$menu
=
menu_get_menu
();
...
...
modules/user/user.module
View file @
96c913dc
...
...
@@ -784,9 +784,8 @@ function user_menu($may_cache) {
drupal_add_css
(
drupal_get_path
(
'module'
,
'user'
)
.
'/user.css'
,
'module'
);
if
(
$_GET
[
'q'
]
==
'user'
&&
$user
->
uid
)
{
// We want to make the current user's profile accessible without knowing
// their uid, so just linking to /user is enough. To achieve this goal,
// we do an internal redirect.
menu_set_active_item
(
'user/'
.
$user
->
uid
);
// their uid, so just linking to /user is enough.
drupal_goto
(
'user/'
.
$user
->
uid
);
}
if
(
arg
(
0
)
==
'user'
&&
is_numeric
(
arg
(
1
))
&&
arg
(
1
)
>
0
)
{
...
...
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