Fixing fetching of optiontypes
authorTim Düsterhus <timwolla@arcor.de>
Sun, 21 Aug 2011 11:08:31 +0000 (13:08 +0200)
committerTim Düsterhus <timwolla@arcor.de>
Sun, 21 Aug 2011 11:08:31 +0000 (13:08 +0200)
wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php

index c60b0315ee90acfc3d1e645c9f9b5b040943eebb..1b3df00b1c0488142bc26ee658e734f6c83daf89 100755 (executable)
@@ -113,7 +113,7 @@ abstract class AbstractOptionListForm extends AbstractForm {
         */
        protected function getTypeObject($type) {
                if (!isset($this->typeObjects[$type])) {
-                       $className = 'wcf\system\option\\'.StringUtil::firstCharToLowerCase($type).'OptionType';
+                       $className = 'wcf\system\option\\'.StringUtil::firstCharToUpperCase($type).'OptionType';
                        
                        // validate class
                        if (!class_exists($className)) {