From 725e3c06d989575e26c4113233f9e71423444858 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 19 May 2018 01:11:01 -0600 Subject: [PATCH] Add friendly error message if no sites are configured (close #31) --- public/index.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index fe7bbb1..1d442fc 100644 --- a/public/index.php +++ b/public/index.php @@ -11,7 +11,25 @@ require_once __DIR__ . "/../lib/themefunctions.php"; include __DIR__ . "/../lib/gatheranalytics.php"; if (!getsiteid()) { - sendError("No website has been created yet. Please open " . SITE_TITLE . " and make one."); + ?> + + + + Welcome! + +
+
+
+

Welcome!

+

You're seeing this message because no website has been created yet. +
+ Open to make one.

+

Log In

+
+
+
+