From 8759ca7368fbe6014286b320cf25185fc1e1a602 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 16 Jul 2003 20:14:26 +0000 Subject: - Commited the URL aliasing patch. Thanks Matt. This update requires you to run update.php! --- index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 3d149eab2..5da9d3cc1 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,10 @@ include_once "includes/common.inc"; if (isset($_GET["q"])) { - $mod = arg(0); + if (module_exist("node") && $path = node_get_alias($_GET["q"])) { + $_GET["q"] = $path; + } + $mod = arg(0); } else { $_GET["q"] = variable_get("site_frontpage", "node"); -- cgit v1.2.3