[+] добавлена возможность подгрузки локальных настроек и переопределения параметров

This commit is contained in:
rsgrinko committed 2023-05-02 23:46:54 +03:00
1 parent 12ffd2a2e4
commit 826941f500
1 file changed
+2 -2
+2 -2
View File
@@ -68,8 +68,8 @@
}
// Если имеется файл локальной конфигурации - подключаем его
if (file_exists(__DIR__ . '/config.local.php')) {
require_once __DIR__ . '/config.local.php';
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/config.local.php')) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/config.local.php';
}
require_once __DIR__ . '/config.php';