Fix #1412 failure to load multilingual document in widget page

This commit is contained in:
Kijin Sung 2020-10-22 00:07:25 +09:00
parent 9752c2ed61
commit f5562356b4

View file

@ -506,8 +506,8 @@ class widgetController extends widget
if($args->document_srl)
{
$oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument($args->document_srl, false, false, false);
$body = $oDocument->getContent(false,false,false, false);
$oDocument = $oDocumentModel->getDocument($args->document_srl, false, true);
$body = $oDocument->getContent(false, false, false, false);
}
else
{
@ -546,8 +546,8 @@ class widgetController extends widget
if($args->document_srl)
{
$oDocumentModel = getModel('document');
$oDocument = $oDocumentModel->getDocument($args->document_srl, false, false, false);
$body = $oDocument->getContent(false,false,false);
$oDocument = $oDocumentModel->getDocument($args->document_srl, false, true);
$body = $oDocument->getContent(false, false, false, false);
}
else
{