From 981c29e70c9ad99ed8c192652a93158ac985c3a5 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 8 Aug 2013 11:38:33 +0200 Subject: [PATCH] Fixes monolingual user group names for ACL options --- wcfsetup/install/files/lib/system/acl/ACLHandler.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php index 8a3b9dc5bb..42575cfc8c 100644 --- a/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php +++ b/wcfsetup/install/files/lib/system/acl/ACLHandler.class.php @@ -5,6 +5,7 @@ use wcf\data\acl\option\category\ACLOptionCategoryList; use wcf\data\acl\option\ACLOption; use wcf\data\acl\option\ACLOptionList; use wcf\data\object\type\ObjectTypeCache; +use wcf\data\user\group\UserGroup; use wcf\data\user\User; use wcf\system\cache\builder\ACLOptionCategoryCacheBuilder; use wcf\system\database\util\PreparedStatementConditionBuilder; @@ -15,7 +16,7 @@ use wcf\util\StringUtil; /** * Handles ACL permissions. - * + * * @author Alexander Ebert * @copyright 2001-2013 WoltLab GmbH * @license GNU Lesser General Public License @@ -81,7 +82,7 @@ class ACLHandler extends SingletonFactory { $values[$type]['option'][$typeID] = $optionValues; if ($type === 'group') { - $values[$type]['label'][$typeID] = WCF::getLanguage()->get('wcf.acp.group.group'.$typeID); + $values[$type]['label'][$typeID] = UserGroup::getGroupByID($typeID)->getName(); } else { $values[$type]['label'][$typeID] = $users[$typeID]->username; -- 2.20.1