From 6d61bbcc339df6d7094010e975050afdcfbbe530 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 27 Apr 2020 20:29:15 +0200 Subject: Rename example config file --- ratatoeskr/main.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ratatoeskr/main.php') diff --git a/ratatoeskr/main.php b/ratatoeskr/main.php index 7599231..491c739 100644 --- a/ratatoeskr/main.php +++ b/ratatoeskr/main.php @@ -9,8 +9,10 @@ * See "ratatoeskr/licenses/ratatoeskr" for more information. */ -require_once(dirname(__FILE__) . "/config.php"); -if (!CONFIG_FILLED_OUT) { +if (is_file(dirname(__FILE__) . "/config.php")) { + require_once(dirname(__FILE__) . "/config.php"); +} +if (!defined("CONFIG_FILLED_OUT") || !CONFIG_FILLED_OUT) { die("Config file not filled out!"); } -- cgit v1.2.3-54-g00ecf