summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/index.php b/index.php
index 89f8354f9..060c66125 100644
--- a/index.php
+++ b/index.php
@@ -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();