mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Change ModuleHandler to update value of is_mobile when calling Mobile::setMobile (#1746)
This commit is contained in:
parent
98d7f8400b
commit
d3ee5083f0
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,7 @@ class ModuleHandler extends Handler
|
|||
if($this->module_info->use_mobile !== 'Y')
|
||||
{
|
||||
Mobile::setMobile(FALSE);
|
||||
$this->is_mobile = Mobile::isFromMobilePhone();
|
||||
}
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
|
@ -416,6 +417,7 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
$type = $orig_type;
|
||||
Mobile::setMobile(FALSE);
|
||||
$this->is_mobile = Mobile::isFromMobilePhone();
|
||||
$oModule = self::getModuleInstance($this->module, $type, $kind);
|
||||
}
|
||||
}
|
||||
|
|
@ -533,6 +535,7 @@ class ModuleHandler extends Handler
|
|||
{
|
||||
$type = $orig_type;
|
||||
Mobile::setMobile(FALSE);
|
||||
$this->is_mobile = Mobile::isFromMobilePhone();
|
||||
$oModule = self::getModuleInstance($forward->module, $type, $kind);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue