mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Prevent disabled editor component in editor popup
This commit is contained in:
parent
3925c24487
commit
e3541c046b
4 changed files with 8 additions and 1 deletions
|
|
@ -532,6 +532,10 @@ class editorModel extends editor
|
|||
|
||||
// Add configuration information
|
||||
$component_info = self::getComponent($component, $site_srl);
|
||||
if ($component_info->enabled !== 'Y')
|
||||
{
|
||||
return new BaseObject(-1, 'msg_component_is_disabled', $component);
|
||||
}
|
||||
$oComponent->setInfo($component_info);
|
||||
self::$_loaded_component_list[$component][$editor_sequence] = $oComponent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue