summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-17 18:56:25 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-17 18:56:25 +0000
commit4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b (patch)
treecd5b7cc5df2f5c7e73bd9428514b789589051e5c /includes
parent5db4a65da38b7c391bdbd35a841ca9f5272f57ea (diff)
downloadbrdo-4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b.tar.gz
brdo-4b84de9a0c5bc8a9a3cb781b423d9ce834ea089b.tar.bz2
#14591, User.module links for blocked/non-existant accounts + menu 403/404 issue, patch by Steven and merlinofchaos
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc8
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'));