diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-30 17:01:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-30 17:01:34 +0000 |
commit | 5a667eb580be3f20bde78232f564152f1cb869a9 (patch) | |
tree | cd347ca532f72b7527c37c2bd4b4009dacf5a2c3 /index.php | |
parent | 13f12eb4177d79ffb1347aba355040a4e6b85738 (diff) | |
download | brdo-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.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"); } |