summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/index.php b/index.php
index 198b23ed7..fc58571b3 100644
--- a/index.php
+++ b/index.php
@@ -3,23 +3,14 @@
include_once "includes/common.inc";
-if (!empty($_GET["q"])) {
- if (module_exist("node") && $path = node_get_alias($_GET["q"])) {
- $_GET["q"] = $path;
- }
-}
-else {
- $_GET["q"] = variable_get("site_frontpage", "node");
-}
-
-$mod = arg(0);
-
drupal_page_header();
check_php_setting("magic_quotes_gpc", 0);
menu_build("system");
+$mod = arg(0);
+
if (isset($mod) && module_hook($mod, "page")) {
module_invoke($mod, "page");
}