mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 02:42:23 +09:00
issue 160 when group is user defined lang, raw php code view.
fixed git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9178 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
117f5d08a7
commit
1e7f864fa3
1 changed files with 7 additions and 1 deletions
|
|
@ -138,14 +138,20 @@
|
|||
|
||||
// get groups
|
||||
$oMemberModel = &getModel('member');
|
||||
$oModuleAdminModel = &getAdminModel('module');
|
||||
$output = $oMemberModel->getGroups();
|
||||
if(is_array($output))
|
||||
{
|
||||
$groupList = array();
|
||||
foreach($output AS $key=>$value)
|
||||
{
|
||||
|
||||
$groupList[$value->group_srl]->group_srl = $value->group_srl;
|
||||
$groupList[$value->group_srl]->title = $value->title;
|
||||
if(substr($value->title,0,12)=='$user_lang->') {
|
||||
$tmp = $oModuleAdminModel->getLangCode(0, $value->title);
|
||||
$groupList[$value->group_srl]->title = $tmp[Context::getLangType()];
|
||||
}
|
||||
else $groupList[$value->group_srl]->title = $value->title;
|
||||
|
||||
if(in_array($key, $menuItem->group_srls)) $groupList[$value->group_srl]->isChecked = true;
|
||||
else $groupList[$value->group_srl]->isChecked = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue