mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue add set use mobile value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12096 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
57cbf7c119
commit
f3656f6a06
2 changed files with 25 additions and 0 deletions
|
|
@ -54,6 +54,7 @@
|
|||
<action name="procModuleAdminDeleteLang" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminGetList" type="controller" standalone="true" />
|
||||
<action name="procModuleAdminSetDesignInfo" type="controller" />
|
||||
<action name="procModuleAdminUpdateUseMobile" type="controller" />
|
||||
|
||||
<action name="dispModuleChangeLang" type="mobile" />
|
||||
</actions>
|
||||
|
|
|
|||
|
|
@ -890,5 +890,29 @@
|
|||
|
||||
return $output;
|
||||
}
|
||||
|
||||
public function procModuleAdminUpdateUseMobile()
|
||||
{
|
||||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
$useMobile = Context::get('use_mobile');
|
||||
|
||||
if(!$menuItemSrl)
|
||||
{
|
||||
return $this->stop(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMenuItemSrl($menuItemSrl);
|
||||
|
||||
$useMobile = $useMobile != 'Y' ? 'N' : 'Y';
|
||||
|
||||
$moduleInfo->use_mobile = $useMobile;
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->updateModule($moduleInfo);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue