diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 8 insertions, 0 deletions
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')); |