From 445ac1213c52360046e87508d2060d1b3620a7a0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 22 Feb 2021 22:51:12 +0300 Subject: finalize config:: migration; make config.php optional --- include/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index d42306147..172ba169d 100644 --- a/include/functions.php +++ b/include/functions.php @@ -30,7 +30,10 @@ ini_set('display_errors', "false"); ini_set('display_startup_errors', "false"); - require_once "config.php"; + // config.php is optional + if (stream_resolve_include_path("config.php")) + require_once "config.php"; + require_once "autoload.php"; if (Config::get(Config::DB_TYPE) == "pgsql") { -- cgit v1.2.3-54-g00ecf