From 4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Fri, 17 Mar 2006 18:56:25 +0000 Subject: #14591, User.module links for blocked/non-existant accounts + menu 403/404 issue, patch by Steven and merlinofchaos --- includes/common.inc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index c6fe6dd05..196fbab6f 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -260,6 +260,10 @@ function drupal_not_found() { menu_set_active_item($path); $return = menu_execute_active_handler(); } + else { + // Redirect to a non-existant menu item to make possible tabs disappear. + menu_set_active_item('#'); + } if (empty($return)) { drupal_set_title(t('Page not found')); @@ -279,6 +283,10 @@ function drupal_access_denied() { menu_set_active_item($path); $return = menu_execute_active_handler(); } + else { + // Redirect to a non-existant menu item to make possible tabs disappear. + menu_set_active_item('#'); + } if (empty($return)) { drupal_set_title(t('Access denied')); -- cgit v1.2.3