summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2003-07-16 20:14:26 (GMT)
committerDries Buytaert2003-07-16 20:14:26 (GMT)
commit8759ca7368fbe6014286b320cf25185fc1e1a602 (patch)
tree866d91c2a873e06d7ef8bc2af5afeb9d60c5235f /index.php
parent1252d51264e9cc45062fe60c2a6b5d6ccf18b8cc (diff)
- Commited the URL aliasing patch. Thanks Matt.
This update requires you to run update.php!
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3d149ea..5da9d3c 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");