Путь к файлам в компонентах
This commit is contained in:
parent
713c00c20d
commit
7b2827e96f
1 changed files with 2 additions and 0 deletions
|
|
@ -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, '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue