diff --git a/core/bootstrap.php b/core/bootstrap.php index d82540b..cf4a834 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -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';