static instead of self for creating instances

in UploadedFile::loadFilesRecursive
fixes #542
This commit is contained in:
Carsten Brandt
2013-06-16 10:33:23 +02:00
parent 0b294c6fd1
commit 4ef19b2e79

View File

@@ -240,7 +240,7 @@ class UploadedFile extends \yii\base\Object
self::loadFilesRecursive($key . '[' . $i . ']', $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]);
}
} else {
self::$_files[$key] = new self($names, $tempNames, $types, $sizes, $errors);
self::$_files[$key] = new static($names, $tempNames, $types, $sizes, $errors);
}
}
}