diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-23 17:27:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-23 17:27:03 +0000 |
commit | 96c913dca9e3299982069e20f9c45de917bc95ff (patch) | |
tree | 787736e936ca07f1ff7471f228245f61eca04993 /modules/user/user.module | |
parent | 533723239282baad567040906a9e91a41212cfc1 (diff) | |
download | brdo-96c913dca9e3299982069e20f9c45de917bc95ff.tar.gz brdo-96c913dca9e3299982069e20f9c45de917bc95ff.tar.bz2 |
- Patch #88707 by chx: Make menu_set_active_item a complete inner redirection.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index ee7393d09..9d0dcbc2e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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) { |