mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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
|
// Include the cache file if it is valid and then return $layout_info variable
|
||||||
if(!$layout_srl)
|
if(!$layout_srl)
|
||||||
{
|
{
|
||||||
$cache_file = $this->getLayoutCache($layout, Context::getLangType());
|
$cache_file = $this->getLayoutCache($layout, Context::getLangType(), $layout_type);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -896,9 +896,16 @@ class layoutModel extends layout
|
||||||
* @param string $lang_type
|
* @param string $lang_type
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function getLayoutCache($layout_name,$lang_type)
|
function getLayoutCache($layout_name,$lang_type,$layout_type='P')
|
||||||
{
|
{
|
||||||
return sprintf("%sfiles/cache/layout/%s.%s.cache.php", _XE_PATH_, $layout_name,$lang_type);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue