summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-06 12:47:20 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-06 12:47:20 +0000
commit9307321817e60ad649a6e166ddaacc7307b333e7 (patch)
tree801f110956a679861372241839c977ab0cc648ad /includes/common.inc
parentc3685d60f70b6a37bb5a47f92fb35c00364a95df (diff)
downloadbrdo-9307321817e60ad649a6e166ddaacc7307b333e7.tar.gz
brdo-9307321817e60ad649a6e166ddaacc7307b333e7.tar.bz2
#148677 by pwolanin: set active menu item on 403/404 pages (and on the user page)
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 2110edc4e..b0cd37a9f 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -340,6 +340,9 @@ function drupal_not_found() {
$path = drupal_get_normal_path(variable_get('site_404', ''));
if ($path && $path != $_GET['q']) {
+ // Set the active item in case there are tabs to display, or other
+ // dependencies on the path.
+ menu_set_active_item($path);
$return = menu_execute_active_handler($path);
}
@@ -365,6 +368,9 @@ function drupal_access_denied() {
$path = drupal_get_normal_path(variable_get('site_403', ''));
if ($path && $path != $_GET['q']) {
+ // Set the active item in case there are tabs to display, or other
+ // dependencies on the path.
+ menu_set_active_item($path);
$return = menu_execute_active_handler($path);
}