diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-28 19:23:19 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-28 19:23:19 +0000 |
commit | ea36711d11f1993c9b07cc63064931e5a9003da1 (patch) | |
tree | 5082593ee7765fd29069571215a34d01215bc607 /includes/common.inc | |
parent | e08bde4def6093fde4a51da6eacf25b394a22bf3 (diff) | |
download | brdo-ea36711d11f1993c9b07cc63064931e5a9003da1.tar.gz brdo-ea36711d11f1993c9b07cc63064931e5a9003da1.tar.bz2 |
- #20910: Centralize print theme page fixes
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/includes/common.inc b/includes/common.inc index 287b38e36..2531fc992 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -208,13 +208,13 @@ function drupal_not_found() { $status = MENU_NOT_FOUND; if ($path) { menu_set_active_item($path); - $status = menu_execute_active_handler(); + $return = menu_execute_active_handler(); } - if ($status != MENU_FOUND) { + if (empty($return)) { drupal_set_title(t('Page not found')); - print theme('page', ''); } + print theme('page', $return); } /** @@ -228,13 +228,14 @@ function drupal_access_denied() { $status = MENU_NOT_FOUND; if ($path) { menu_set_active_item($path); - $status = menu_execute_active_handler(); + $return = menu_execute_active_handler(); } - if ($status != MENU_FOUND) { + if (empty($return)) { drupal_set_title(t('Access denied')); - print theme('page', message_access()); + $return = message_access(); } + print theme('page', $return); } /** |