summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-09-30 17:01:34 +0000
committerDries Buytaert <dries@buytaert.net>2003-09-30 17:01:34 +0000
commit5a667eb580be3f20bde78232f564152f1cb869a9 (patch)
treecd347ca532f72b7527c37c2bd4b4009dacf5a2c3 /index.php
parent13f12eb4177d79ffb1347aba355040a4e6b85738 (diff)
downloadbrdo-5a667eb580be3f20bde78232f564152f1cb869a9.tar.gz
brdo-5a667eb580be3f20bde78232f564152f1cb869a9.tar.bz2
- 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 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");
}