mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Migrate miscellaneous config to new format
This commit is contained in:
parent
d41516349c
commit
4ea9ab02ec
2 changed files with 13 additions and 13 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue