mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix exposed lang code in editor module group list #2447
This commit is contained in:
parent
746afdacb3
commit
78229aa944
2 changed files with 8 additions and 0 deletions
|
|
@ -111,6 +111,10 @@ class EditorAdminView extends Editor
|
|||
|
||||
// Get a group list to set a group
|
||||
$group_list = MemberModel::getGroups(0);
|
||||
foreach ($group_list ?: [] as $group)
|
||||
{
|
||||
$group->title = Context::replaceUserLang($group->title, true);
|
||||
}
|
||||
Context::set('group_list', $group_list);
|
||||
|
||||
// Get a mid list
|
||||
|
|
|
|||
|
|
@ -165,6 +165,10 @@ class EditorView extends Editor
|
|||
// Get a group list
|
||||
$group_list = MemberModel::getGroups();
|
||||
Context::set('group_list', $group_list);
|
||||
foreach ($group_list ?: [] as $group)
|
||||
{
|
||||
$group->title = Context::replaceUserLang($group->title, true);
|
||||
}
|
||||
|
||||
//Security
|
||||
$security = new Security();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue