summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-07-16 20:14:26 +0000
committerDries Buytaert <dries@buytaert.net>2003-07-16 20:14:26 +0000
commit8759ca7368fbe6014286b320cf25185fc1e1a602 (patch)
tree866d91c2a873e06d7ef8bc2af5afeb9d60c5235f /index.php
parent1252d51264e9cc45062fe60c2a6b5d6ccf18b8cc (diff)
downloadbrdo-8759ca7368fbe6014286b320cf25185fc1e1a602.tar.gz
brdo-8759ca7368fbe6014286b320cf25185fc1e1a602.tar.bz2
- 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 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");