Permalink
Browse files

FIX File class typo

  • Loading branch information...
a2nt committed May 7, 2013
1 parent a5d69f2 commit 00b8ffd05ffd9719c0efde636353bb06d9fedc22
Showing with 1 addition and 1 deletion.
  1. +1 −1 filesystem/File.php
View
@@ -936,7 +936,7 @@ public static function set_class_for_file_extension($exts, $class) {
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)
);

0 comments on commit 00b8ffd

Please sign in to comment.