diff options
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(); |