Путь к файлам в компонентах

This commit is contained in:
Podlesnov Phedor 2021-06-03 13:12:27 +03:00
parent 713c00c20d
commit 7b2827e96f

View file

@ -243,6 +243,8 @@ class Controller_Component
if (defined('COMPONENTS_WEB')) { if (defined('COMPONENTS_WEB')) {
$component->webPath = array(COMPONENTS_WEB . '/' . $name, SITE_WWW_PATH . '/components/' . $name); $component->webPath = array(COMPONENTS_WEB . '/' . $name, SITE_WWW_PATH . '/components/' . $name);
$component->COMPONENTS_WEB = COMPONENTS_WEB; $component->COMPONENTS_WEB = COMPONENTS_WEB;
} else {
$component->webPath = array('', SITE_WWW_PATH . '/components/' . $name, '');
} }
} }