* added some fixtures for the unit tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Controller / TX_EXTMVC_Controller_Argument.php
index a011514..5f15aa6 100644 (file)
@@ -192,9 +192,9 @@ class Argument {
        public function setDataType($dataType) {
                $this->dataType = ($dataType != '' ? $dataType : 'Text');
 
-               $dataTypeValidatorClassname = $this->dataType;
-               if (!$this->objectManager->isObjectRegistered($dataTypeValidatorClassname)) $dataTypeValidatorClassname = 'F3_FLOW3_Validation_Validator\\' . $this->dataType;
-               $this->datatypeValidator = $this->objectManager->getObject($dataTypeValidatorClassname);
+               $dataTypeValidatorClassName = $this->dataType;
+               if (!$this->objectManager->isObjectRegistered($dataTypeValidatorClassName)) $dataTypeValidatorClassName = 'TX_EXTMVC_Validation_Validator_' . $this->dataType;
+               $this->datatypeValidator = $this->objectManager->getObject($dataTypeValidatorClassName);
 
                return $this;
        }