diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-24 16:34:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-24 16:34:36 +0000 |
commit | a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 (patch) | |
tree | 77a2538001468623dc122943f019daeb6fce9be1 /index.php | |
parent | 79a5700c57e8ed86b4aab66022a448df978d2e3f (diff) | |
download | brdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.gz brdo-a76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9.tar.bz2 |
- Patch 20910 by chx: centralize print theme page.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -15,14 +15,19 @@ include_once 'includes/common.inc'; fix_gpc_magic(); -$status = menu_execute_active_handler(); -switch ($status) { +$return = menu_execute_active_handler(); +switch ($return) { case MENU_NOT_FOUND: drupal_not_found(); break; case MENU_ACCESS_DENIED: drupal_access_denied(); break; + default: + if (!empty($return)) { + print theme('page', $return); + } + break; } drupal_page_footer(); |