From 12bcf826e4f2672afbda85264a970fb4735d97f1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Feb 2021 22:39:20 +0300 Subject: don't include config.php everywhere --- prefs.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'prefs.php') 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; -- cgit v1.2.3