Merge pull request #1848 from a2nt/patch-1

FIX File class typo
This commit is contained in:
Ingo Schommer 2013-05-07 15:30:55 -07:00
commit 4de032b364

View File

@ -936,7 +936,7 @@ class File extends DataObject {
if(!is_array($exts)) $exts = array($exts);
foreach($exts as $ext) {
if(!is_subclass_of($ext, 'File')) {
if(!is_subclass_of($class, 'File')) {
throw new InvalidArgumentException(
sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
);