diff --git a/api/index.php b/api/index.php index 6b0071141..333c64830 100644 --- a/api/index.php +++ b/api/index.php @@ -1,8 +1,6 @@ Fatal Error: You forgot to copy - config.php-dist to config.php 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; diff --git a/prefs.php b/prefs.php index b6026eb23..141118534 100644 --- a/prefs.php +++ b/prefs.php @@ -2,17 +2,10 @@ set_include_path(__DIR__ ."/include" . PATH_SEPARATOR . get_include_path()); - if (!file_exists("config.php")) { - print "Fatal Error: You forgot to copy - config.php-dist to config.php and edit it.\n"; - exit; - } - require_once "autoload.php"; 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; diff --git a/public.php b/public.php index 48fe675f8..8a02387cf 100644 --- a/public.php +++ b/public.php @@ -6,7 +6,6 @@ require_once "sessions.php"; require_once "functions.php"; require_once "sanity_check.php"; - require_once "config.php"; require_once "db-prefs.php"; startup_gettext(); diff --git a/update.php b/update.php index 92a087a2e..af541f517 100755 --- a/update.php +++ b/update.php @@ -9,7 +9,6 @@ require_once "autoload.php"; require_once "functions.php"; - require_once "config.php"; require_once "sanity_check.php"; require_once "db-prefs.php"; diff --git a/update_daemon2.php b/update_daemon2.php index b0314f3e9..2743a0fa2 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -10,7 +10,6 @@ require_once "autoload.php"; require_once "functions.php"; - require_once "config.php"; require_once "sanity_check.php"; require_once "db-prefs.php";