summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-18 21:21:30 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-18 21:21:30 +0000
commit0c5b324809dcb44de8690f7bba21fec607bd67d1 (patch)
treeebb35d175a3dd84744088fdc36e9b84ba465fcdd /index.php
parent2f149c56e7ebb03987187867799dedad37f5e1fd (diff)
downloadbrdo-0c5b324809dcb44de8690f7bba21fec607bd67d1.tar.gz
brdo-0c5b324809dcb44de8690f7bba21fec607bd67d1.tar.bz2
- Improvement: made the default homepage setting more flexible. Patch by
Eric A. Farris.
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index 7c4fda6a0..692279b98 100644
--- a/index.php
+++ b/index.php
@@ -6,6 +6,10 @@ include_once "includes/common.inc";
if (isset($_GET["q"])) {
$mod = arg(0);
}
+else {
+ $_GET["q"] = variable_get("site_frontpage", "node");
+ $mod = arg(0);
+}
if (isset($mod) && module_hook($mod, "page")) {
if ($mod != "admin") {