Merge branch 'dev' of http://gitlab.edu.yar.ru/composer/PHP_library
This commit is contained in:
commit
b45c7e9a58
4 changed files with 29 additions and 10 deletions
|
|
@ -260,10 +260,16 @@ class Controller_Component
|
|||
$component->parameter = $params;
|
||||
$component->template = $params->get('template', false);
|
||||
|
||||
global $componentsConfig;
|
||||
$editor = $component->getEditUrl();
|
||||
if ($editor) {
|
||||
$componentsConfig[] = $editor;
|
||||
if(class_exists("Controller_Site")){ //Если мы в CMS2
|
||||
$instance = Controller_Site::getInstance();
|
||||
$instance->componentsConfig[] = $editor;
|
||||
}else{
|
||||
global $componentsConfig;
|
||||
$componentsConfig[] = $editor;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $component;
|
||||
|
|
@ -308,6 +314,10 @@ class Controller_Component
|
|||
return '?' . http_build_query($arr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated В CMS2 перенесено в контроллер сайта!
|
||||
*/
|
||||
|
||||
function addRequireJsPath($name, $path, $shim = null) {
|
||||
Controller_Site::addRequireJsPath($name, $path, $shim);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue