changeset 157:5136563c1f04

Oops, use defaultPage here, too.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Oct 2013 22:46:38 +0300
parents fa7f3defffd0
children 96aae4beb558
files index.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/index.php	Fri Oct 25 16:12:05 2013 +0300
+++ b/index.php	Fri Oct 25 22:46:38 2013 +0300
@@ -79,7 +79,7 @@
 echo stGetSetting("siteExtraHTML");
 
 // Get the name of the page
-$pageName = isset($_GET["p"]) ? $_GET["p"] : "news";
+$pageName = isset($_GET["p"]) ? $_GET["p"] : stGetSetting("defaultPage");
 $pageBasename = basename($pageName);
 $pageFilename = $pageBasename.".inc.php";