summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2005-04-24 16:34:36 (GMT)
committerDries Buytaert2005-04-24 16:34:36 (GMT)
commita76a1e1f3f5b641663ef3d00a752ec1cbd1d4ee9 (patch)
tree77a2538001468623dc122943f019daeb6fce9be1 /index.php
parent79a5700c57e8ed86b4aab66022a448df978d2e3f (diff)
- Patch 20910 by chx: centralize print theme page.
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 89f8354..060c661 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();