Fix msg_not_permitted in communication module on mobile

This commit is contained in:
Kijin Sung 2017-12-04 10:56:31 +09:00
parent 0396d32ae5
commit 44aea4301d

View file

@ -13,19 +13,19 @@ class communicationMobile extends communicationView
{
$oCommunicationModel = getModel('communication');
$this->communication_config = $oCommunicationModel->getConfig();
$skin = $this->communication_config->mskin;
$this->config = $oCommunicationModel->getConfig();
$skin = $this->config->mskin;
Context::set('communication_config', $this->communication_config);
Context::set('communication_config', $this->config);
$tpl_path = sprintf('%sm.skins/%s', $this->module_path, $skin);
$this->setTemplatePath($tpl_path);
$oLayoutModel = getModel('layout');
$layout_info = $oLayoutModel->getLayout($this->communication_config->mlayout_srl);
$layout_info = $oLayoutModel->getLayout($this->config->mlayout_srl);
if($layout_info)
{
$this->module_info->mlayout_srl = $this->communication_config->mlayout_srl;
$this->module_info->mlayout_srl = $this->config->mlayout_srl;
$this->setLayoutPath($layout_info->path);
}
}