summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorDries Buytaert2003-06-18 21:21:30 (GMT)
committerDries Buytaert2003-06-18 21:21:30 (GMT)
commit0c5b324809dcb44de8690f7bba21fec607bd67d1 (patch)
treeebb35d175a3dd84744088fdc36e9b84ba465fcdd /index.php
parent2f149c56e7ebb03987187867799dedad37f5e1fd (diff)
- 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 7c4fda6..692279b 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") {