aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-04-27 20:29:15 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-04-27 20:29:15 +0200
commit6d61bbcc339df6d7094010e975050afdcfbbe530 (patch)
tree0b937b332df756e17db16e584acf42ba553ab04d /ratatoeskr
parentaa09d5b5eefd25f3e649dfb0a32f4a1a9021a093 (diff)
downloadratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.tar.gz
ratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.tar.bz2
ratatoeskr-cms-6d61bbcc339df6d7094010e975050afdcfbbe530.zip
Rename example config file
Diffstat (limited to 'ratatoeskr')
-rw-r--r--ratatoeskr/config.dist.php (renamed from ratatoeskr/config.php)0
-rw-r--r--ratatoeskr/main.php6
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!");
}