diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-04-27 20:29:15 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-04-27 20:29:15 +0200 |
commit | 6d61bbcc339df6d7094010e975050afdcfbbe530 (patch) | |
tree | 0b937b332df756e17db16e584acf42ba553ab04d | |
parent | aa09d5b5eefd25f3e649dfb0a32f4a1a9021a093 (diff) | |
download | ratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.tar.gz ratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.tar.bz2 ratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.zip |
Rename example config file
-rw-r--r-- | ratatoeskr/config.dist.php (renamed from ratatoeskr/config.php) | 0 | ||||
-rw-r--r-- | ratatoeskr/main.php | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ratatoeskr/config.php b/ratatoeskr/config.dist.php index db2d6e5..db2d6e5 100644 --- a/ratatoeskr/config.php +++ b/ratatoeskr/config.dist.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!"); } |