모바일 뷰어 사용중일 경우 모바일 최적화 화면 문구 뜨도록 개선

This commit is contained in:
BJRambo 2015-01-13 17:28:44 +09:00
parent 1f9844ed08
commit 4b1025e8c5
3 changed files with 9 additions and 7 deletions

View file

@ -52,9 +52,7 @@ class Mobile
{
return $this->ismobile;
}
$db_info = Context::getDBInfo();
if($db_info->use_mobile_view != "Y" || Context::get('full_browse') || $_COOKIE["FullBrowse"])
if(Mobile::isMobileEnabled() === false || Context::get('full_browse') || $_COOKIE["FullBrowse"])
{
return ($this->ismobile = false);
}
@ -234,5 +232,10 @@ class Mobile
$oMobile->ismobile = $ismobile;
}
function isMobileEnabled()
{
$db_info = Context::getDBInfo();
return ($db_info->use_mobile_view === 'Y');
}
}
?>