From 8c1b532e16049983a6253def3245ebcdd1662e59 Mon Sep 17 00:00:00 2001 From: akasima Date: Mon, 14 Jul 2014 16:05:16 +0900 Subject: [PATCH] =?UTF-8?q?#842=20=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83=20?= =?UTF-8?q?=EC=BC=80=EC=8B=9C=20=ED=8C=8C=EC=9D=BC=EC=9D=B4=20pc,=20mobile?= =?UTF-8?q?=20=EA=B5=AC=EB=B6=84=EC=97=86=EC=9D=B4=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/layout/layout.model.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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); + } } /**