Prevent disabled editor component in editor popup

This commit is contained in:
Kijin Sung 2021-12-31 00:06:13 +09:00
parent 3925c24487
commit e3541c046b
4 changed files with 8 additions and 1 deletions

View file

@ -66,7 +66,8 @@ class editorView extends editor
$oComponent = &$oEditorModel->getComponentObject($component, $editor_sequence, $site_srl);
if(!$oComponent->toBool())
{
Context::set('message', sprintf(lang('msg_component_is_not_founded'), $component));
Context::set('message', sprintf($oComponent->getMessage(), $component));
$this->setLayoutFile('popup_layout');
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('component_not_founded');
}