Fixed UserGroupEdit
authorMagnus Kühn <magnus@Magnus-Laptop.(none)>
Sun, 26 Feb 2012 07:46:45 +0000 (08:46 +0100)
committerMagnus Kühn <magnus@Magnus-Laptop.(none)>
Sun, 26 Feb 2012 07:46:45 +0000 (08:46 +0100)
wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php
wcfsetup/install/files/lib/system/option/user/group/UserGroupsUserGroupOptionType.class.php

index 52ebce81cb16b1cc3200be115aa3a8e265872e56..66192d0f75e6f3589efd8e248b19871cfcee7a65 100644 (file)
@@ -105,10 +105,11 @@ class OptionCacheBuilder implements ICacheBuilder {
                        if (!empty($type)) {
                                // strip trailing underscore
                                preg_match_all('~((?:^|[A-Z])[a-z]+)~', $type, $matches);
+                               
                                if (isset($matches[1])) {
                                        $className = 'wcf\data\\';
                                        for ($i = 0, $length = count($matches[1]); $i < $length; $i++) {
-                                               $className .= $matches[1][$i] . '\\';
+                                               $className .= strtolower($matches[1][$i] . '\\');
                                        }
                                        $className .= 'option\\' . ucfirst($type) . 'Option';
                                }
index 6fc331e71339111352cbf7426244f52578376bac..8ef035e35a888aa68747fdeecd455b80c4bca0da 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace wcf\system\option\user\Group;
+namespace wcf\system\option\user\group;
 use wcf\data\option\Option;
 use wcf\data\user\group\UserGroup;
 use wcf\system\exception\UserInputException;