Fix erroneous identification of nohtml config

This commit is contained in:
Kijin Sung 2017-06-29 19:39:18 +09:00
parent 1d2368f105
commit 24ab7dba9e
2 changed files with 4 additions and 4 deletions

View file

@ -437,7 +437,7 @@ class commentController extends comment
if(!$manual_inserted)
{
$editor_config = getModel('editor')->getEditorConfig($obj->module_srl);
if (strpos($editor_config->comment_editor_skin, 'textarea') !== false || strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
if (strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
{
$is_html_content = false;
}
@ -811,7 +811,7 @@ class commentController extends comment
if(!$manual_updated)
{
$editor_config = getModel('editor')->getEditorConfig($obj->module_srl);
if (strpos($editor_config->comment_editor_skin, 'textarea') !== false || strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
if (strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
{
$is_html_content = false;
}

View file

@ -458,7 +458,7 @@ class documentController extends document
if(!$manual_inserted)
{
$editor_config = getModel('editor')->getEditorConfig($obj->module_srl);
if (strpos($editor_config->comment_editor_skin, 'textarea') !== false || strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
if (strpos($editor_config->sel_editor_colorset, 'nohtml') !== false)
{
$is_html_content = false;
}
@ -717,7 +717,7 @@ class documentController extends document
if(!$manual_updated)
{
$editor_config = getModel('editor')->getEditorConfig($obj->module_srl);
if (strpos($editor_config->comment_editor_skin, 'textarea') !== false || strpos($editor_config->sel_comment_editor_colorset, 'nohtml') !== false)
if (strpos($editor_config->sel_editor_colorset, 'nohtml') !== false)
{
$is_html_content = false;
}