summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-15 14:07:30 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-15 14:07:30 +0000
commitf42bca3bd4a7b97e103ddba3fdb4e403f7215b2a (patch)
tree771d33dbec4ead4d7a3a20022dbbdd669bd32691 /index.php
parentdbac31e066a95983c6a20d9cf9c69f048bb12ead (diff)
downloadbrdo-f42bca3bd4a7b97e103ddba3fdb4e403f7215b2a.tar.gz
brdo-f42bca3bd4a7b97e103ddba3fdb4e403f7215b2a.tar.bz2
- Patch #599804 by effulgentsia, catch: unify page, AJAX 'path', and AJAX 'callback' callbacks. Oh my, this is the beginning of something big.
Diffstat (limited to 'index.php')
-rw-r--r--index.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/index.php b/index.php
index f83ae4c01..f13c75adf 100644
--- a/index.php
+++ b/index.php
@@ -19,25 +19,4 @@ define('DRUPAL_ROOT', getcwd());
require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
-$return = menu_execute_active_handler();
-
-// Menu status constants are integers; page content is a string or array.
-if (is_int($return)) {
- switch ($return) {
- case MENU_NOT_FOUND:
- drupal_not_found();
- break;
- case MENU_ACCESS_DENIED:
- drupal_access_denied();
- break;
- case MENU_SITE_OFFLINE:
- drupal_site_offline();
- break;
- }
-}
-elseif (isset($return)) {
- // Print anything besides a menu constant, assuming it's not NULL or undefined.
- print drupal_render_page($return);
-}
-
-drupal_page_footer();
+menu_execute_active_handler();