#842 레이아웃 케시 파일이 pc, mobile 구분없이 저장되는 문제 해결

This commit is contained in:
akasima 2014-07-14 16:05:16 +09:00
parent 17eac15831
commit 8c1b532e16

View file

@ -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