From e24bd38dd99b184ebed85a09846d50f74d545a2f Mon Sep 17 00:00:00 2001 From: akimsullec Date: Thu, 7 Jun 2018 17:49:19 +0300 Subject: [PATCH] Update config.inc.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Взять путь до ядра из конфига в корне сайта. Для Advanced дистрибутива MODX --- _build/config.inc.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/_build/config.inc.php b/_build/config.inc.php index 0275e3c..86f3968 100644 --- a/_build/config.inc.php +++ b/_build/config.inc.php @@ -1,12 +1,7 @@ 1)) { - $path = dirname($path); - } - define('MODX_CORE_PATH', $path . '/core/'); -} +$root = $_SERVER['DOCUMENT_ROOT']; +include_once $root.'/config.core.php'; return [ 'name' => 'modExtra', @@ -37,4 +32,4 @@ 'log_target' => php_sapi_name() == 'cli' ? 'ECHO' : 'HTML', // Download transport.zip after build 'download' => !empty($_REQUEST['download']), -]; \ No newline at end of file +];