diff --git a/modules/layout/layout.model.php b/modules/layout/layout.model.php index 2680a4a10..858d37400 100644 --- a/modules/layout/layout.model.php +++ b/modules/layout/layout.model.php @@ -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,9 +896,16 @@ 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') { - 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); + } } /**