Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2c912063
Commit
2c912063
authored
Nov 12, 2007
by
Gábor Hojtsy
Browse files
#84754
: fix 404 and 403 error pages if the path set for these error pages does not exist
parent
c856eac1
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
2c912063
...
...
@@ -352,9 +352,9 @@ function drupal_not_found() {
$return
=
menu_execute_active_handler
(
$path
);
}
if
(
empty
(
$return
))
{
if
(
empty
(
$return
)
||
$return
==
MENU_NOT_FOUND
||
$return
==
MENU_ACCESS_DENIED
)
{
drupal_set_title
(
t
(
'Page not found'
));
$return
=
''
;
$return
=
t
(
'The requested page could not be found.'
)
;
}
// To conserve CPU and bandwidth, omit the blocks.
...
...
@@ -381,7 +381,7 @@ function drupal_access_denied() {
$return
=
menu_execute_active_handler
(
$path
);
}
if
(
empty
(
$return
))
{
if
(
empty
(
$return
)
||
$return
==
MENU_NOT_FOUND
||
$return
==
MENU_ACCESS_DENIED
)
{
drupal_set_title
(
t
(
'Access denied'
));
$return
=
t
(
'You are not authorized to access this page.'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment