Permalink
Browse files

BUG removed use of deprecated method

  • Loading branch information...
1 parent ae52be5 commit 5c5a50687851015c01c76f7795e8b4e0f12aa7e6 Nik Rolls committed with wilr Aug 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 filesystem/File.php
View
3 filesystem/File.php
@@ -920,8 +920,9 @@ static function get_class_for_file_extension($ext) {
*/
static function set_class_for_file_extension($exts, $class) {
if(!is_array($exts)) $exts = array($exts);
+
foreach($exts as $ext) {
- if(ClassInfo::is_subclass_of($ext, 'File')) {
+ if(is_subclass_of($ext, 'File')) {
throw new InvalidArgumentException(
sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
);

0 comments on commit 5c5a506

Please sign in to comment.