Fixes monolingual user group names for ACL options
authorMatthias Schmidt <gravatronics@live.com>
Thu, 8 Aug 2013 09:38:33 +0000 (11:38 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 8 Aug 2013 09:38:33 +0000 (11:38 +0200)
wcfsetup/install/files/lib/system/acl/ACLHandler.class.php

index 8a3b9dc5bb109a1a3d35690f745f5c1cd2cfa84b..42575cfc8c5e0ebc859ae7ab7da05fb84ac35273 100644 (file)
@@ -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 <http://opensource.org/licenses/lgpl-license.php>
@@ -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;