Do not modify document when it is a manual inserted document

Do not modify document when it is a manual inserted document.
다른 모듈 등을 통해서 manual inerted 표시된 문서는 변형하지 않습니다.
This commit is contained in:
MinSoo Kim 2015-05-22 10:18:48 +09:00
parent 2694f5a510
commit 5d9c6a1e6d

View file

@ -280,7 +280,7 @@ class documentController extends document
if($obj->title == '') $obj->title = 'Untitled';
// Remove XE's own tags from the contents.
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
if(Mobile::isFromMobilePhone() && !$manual_inserted)
{
if($obj->use_html != 'Y')
{
@ -478,7 +478,7 @@ class documentController extends document
if($obj->title == '') $obj->title = 'Untitled';
// Remove XE's own tags from the contents.
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
if(Mobile::isFromMobilePhone() && !$manual_updated)
{
if($obj->use_html != 'Y')
{