summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-20 07:47:18 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-20 07:47:18 +0000
commit6958037da6a242b92367624534b1c8ca1ecd1c5c (patch)
tree8e498286987c40fc0eaed953987f007132db5abd /includes/common.inc
parent7f0941956488617b26664523cb4487517d0de79c (diff)
downloadbrdo-6958037da6a242b92367624534b1c8ca1ecd1c5c.tar.gz
brdo-6958037da6a242b92367624534b1c8ca1ecd1c5c.tar.bz2
- Bugfix: made the "Default front page" setting work with URL aliases. Patch
by Matt.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 8aa9e853e..48984ac52 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1178,7 +1178,12 @@ if (!empty($_GET["q"])) {
}
}
else {
- $_GET["q"] = variable_get("site_frontpage", "node");
+ if ($path = drupal_get_normal_path(variable_get("site_frontpage", "node"))) {
+ $_GET["q"] = $path;
+ }
+ else {
+ $_GET["q"] = variable_get("site_frontpage", "node");
+ }
}
// initialize installed modules: