[*] скорректирована логика переопределения параметров конфигурации для избавления от WARNING

This commit is contained in:
rsgrinko committed 2023-05-03 21:57:28 +03:00
1 parent 742aa792f9
commit 10e1b7eaa5
2 files changed
+31 -83

No files matched your search

+4 -2
View File
@@ -24,7 +24,8 @@
use Core\CoreException;
use Core\Models\Router;
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
//error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
error_reporting(E_ALL);
if (session_status() == PHP_SESSION_NONE) {
session_start();
@@ -67,11 +68,12 @@
$_SERVER['DOCUMENT_ROOT'] = __DIR__. '/../';
}
require_once __DIR__ . '/config.php';
// Если имеется файл локальной конфигурации - подключаем его
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/config.local.php')) {
require_once $_SERVER['DOCUMENT_ROOT'] . '/config.local.php';
}
require_once __DIR__ . '/config.php';
/**