Migrate miscellaneous config to new format

This commit is contained in:
Kijin Sung 2016-02-05 11:26:35 +09:00
parent d41516349c
commit 4ea9ab02ec
2 changed files with 13 additions and 13 deletions

View file

@ -50,9 +50,9 @@ class Mobile
{
return $this->ismobile;
}
if(Mobile::isMobileEnabled() === false || Context::get('full_browse') || $_COOKIE["FullBrowse"])
if(!config('use_mobile_view') || Context::get('full_browse') || $_COOKIE["FullBrowse"])
{
return ($this->ismobile = false);
return $this->ismobile = false;
}
$xe_web_path = Context::pathToUrl(_XE_PATH_);
@ -231,6 +231,6 @@ class Mobile
public static function isMobileEnabled()
{
return (Context::getDBInfo()->use_mobile_view === 'Y');
return config('use_mobile_view');
}
}