#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 // 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);
}
} }
/** /**