summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2003-09-30 17:01:34 (GMT)
committerDries Buytaert2003-09-30 17:01:34 (GMT)
commit5a667eb580be3f20bde78232f564152f1cb869a9 (patch)
treecd347ca532f72b7527c37c2bd4b4009dacf5a2c3 /index.php
parent13f12eb4177d79ffb1347aba355040a4e6b85738 (diff)
- Url aliasing improvements. Patch by Matt. See mailing list for more
information.
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 198b23e..fc58571 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");
}