From: Matthias Schmidt Date: Thu, 8 Aug 2013 09:38:33 +0000 (+0200) Subject: Fixes monolingual user group names for ACL options X-Git-Tag: 2.0.0_Beta_7~46^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=981c29e70c9ad99ed8c192652a93158ac985c3a5;p=GitHub%2FWoltLab%2FWCF.git Fixes monolingual user group names for ACL options --- 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;