Skip to content
This repository
Browse code

BUG removed use of deprecated method

  • Loading branch information...
commit 5c5a50687851015c01c76f7795e8b4e0f12aa7e6 1 parent ae52be5
authored August 10, 2012 wilr committed August 10, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  filesystem/File.php
3  filesystem/File.php
@@ -920,8 +920,9 @@ static function get_class_for_file_extension($ext) {
920 920
 	 */
921 921
 	static function set_class_for_file_extension($exts, $class) {
922 922
 		if(!is_array($exts)) $exts = array($exts);
  923
+		
923 924
 		foreach($exts as $ext) {
924  
-			if(ClassInfo::is_subclass_of($ext, 'File')) {
  925
+			if(is_subclass_of($ext, 'File')) {
925 926
 				throw new InvalidArgumentException(
926 927
 					sprintf('Class "%s" (for extension "%s") is not a valid subclass of File', $class, $ext)
927 928
 				);

0 notes on commit 5c5a506

Please sign in to comment.
Something went wrong with that request. Please try again.