Fix mobile external page path

This commit is contained in:
Kijin Sung 2022-03-16 14:13:57 +09:00
parent 5746c858ba
commit 5b195ce16e

View file

@ -36,7 +36,14 @@ class pageView extends page
if ($this->module_info->page_type === 'OUTSIDE')
{
$this->interval = (int)($this->module_info->page_caching_interval ?? 0);
$this->path = $this->module_info->path ?? '';
if ($this instanceof pageMobile)
{
$this->path = ($this->module_info->mpath ?? '') ?: ($this->module_info->path ?? '');
}
else
{
$this->path = ($this->module_info->path ?? '');
}
$this->proc_php = (isset($this->module_info->opage_proc_php) && $this->module_info->opage_proc_php === 'N') ? false : true;
$this->proc_tpl = (isset($this->module_info->opage_proc_tpl) && $this->module_info->opage_proc_tpl === 'Y') ? true : false;
$this->cache_file = vsprintf('%sfiles/cache/opage/%d.%s.%s.%s.%s.cache.php', [