From 0c5b324809dcb44de8690f7bba21fec607bd67d1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Jun 2003 21:21:30 +0000 Subject: - Improvement: made the default homepage setting more flexible. Patch by Eric A. Farris. --- index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'index.php') 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") { -- cgit v1.2.3