diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-20 07:47:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-20 07:47:18 +0000 |
commit | 6958037da6a242b92367624534b1c8ca1ecd1c5c (patch) | |
tree | 8e498286987c40fc0eaed953987f007132db5abd | |
parent | 7f0941956488617b26664523cb4487517d0de79c (diff) | |
download | brdo-6958037da6a242b92367624534b1c8ca1ecd1c5c.tar.gz brdo-6958037da6a242b92367624534b1c8ca1ecd1c5c.tar.bz2 |
- Bugfix: made the "Default front page" setting work with URL aliases. Patch
by Matt.
-rw-r--r-- | includes/common.inc | 7 |
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: |