summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-22 22:39:20 +0300
committerAndrew Dolgov <[email protected]>2021-02-22 22:39:20 +0300
commit12bcf826e4f2672afbda85264a970fb4735d97f1 (patch)
treebeaaeb8942d423a183f9d1b39953dd76bf619a81 /index.php
parent211f699aa0c4211e4ee8a02446d51b9811d0c28c (diff)
don't include config.php everywhere
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 0 insertions, 7 deletions
diff --git a/index.php b/index.php
index 73fccc3ea..d640c2db9 100644
--- a/index.php
+++ b/index.php
@@ -1,11 +1,5 @@
<?php
- if (!file_exists("config.php")) {
- print "<b>Fatal Error</b>: You forgot to copy
- <b>config.php-dist</b> to <b>config.php</b> and edit it.\n";
- exit;
- }
-
// we need a separate check here because functions.php might get parsed
// incorrectly before 5.3 because of :: syntax.
if (version_compare(PHP_VERSION, '7.0.0', '<')) {
@@ -20,7 +14,6 @@
require_once "sessions.php";
require_once "functions.php";
require_once "sanity_check.php";
- require_once "config.php";
require_once "db-prefs.php";
if (!init_plugins()) return;