mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#842 레이아웃 케시 파일이 pc, mobile 구분없이 저장되는 문제 해결
This commit is contained in:
parent
17eac15831
commit
8c1b532e16
1 changed files with 10 additions and 3 deletions
|
|
@ -478,7 +478,7 @@ class layoutModel extends layout
|
|||
// Include the cache file if it is valid and then return $layout_info variable
|
||||
if(!$layout_srl)
|
||||
{
|
||||
$cache_file = $this->getLayoutCache($layout, Context::getLangType());
|
||||
$cache_file = $this->getLayoutCache($layout, Context::getLangType(), $layout_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -896,10 +896,17 @@ class layoutModel extends layout
|
|||
* @param string $lang_type
|
||||
* @return string
|
||||
*/
|
||||
function getLayoutCache($layout_name,$lang_type)
|
||||
function getLayoutCache($layout_name,$lang_type,$layout_type='P')
|
||||
{
|
||||
if($layout_type=='P')
|
||||
{
|
||||
return sprintf("%sfiles/cache/layout/%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
return sprintf("%sfiles/cache/layout/m.%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* default layout ini to prevent arbitrary changes by a user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue