diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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"); } |