Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/comment/comment.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function insertComment($obj, $manual_inserted = FALSE)
// 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() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{
Expand Down Expand Up @@ -721,7 +721,7 @@ function updateComment($obj, $is_admin = FALSE)
// remove XE's wn tags from contents
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);

if(Mobile::isFromMobilePhone())
if(Mobile::isFromMobilePhone() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{
Expand Down
4 changes: 2 additions & 2 deletions modules/document/document.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function insertDocument($obj, $manual_inserted = false, $isRestore = false, $isL
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() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{
Expand Down Expand Up @@ -478,7 +478,7 @@ function updateDocument($source_obj, $obj, $manual_updated = FALSE)
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() && $obj->use_editor != 'Y')
{
if($obj->use_html != 'Y')
{
Expand Down