summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.php b/index.php
index 416fa17a6..198b23ed7 100644
--- a/index.php
+++ b/index.php
@@ -16,12 +16,14 @@ $mod = arg(0);
drupal_page_header();
+check_php_setting("magic_quotes_gpc", 0);
+
+menu_build("system");
+
if (isset($mod) && module_hook($mod, "page")) {
module_invoke($mod, "page");
}
else {
- check_php_setting("magic_quotes_gpc", 0);
-
if (module_hook(variable_get("site_frontpage", "node"), "page")) {
module_invoke(variable_get("site_frontpage", "node"), "page");
}