Permalink
Browse files

Changing File->info() to File->mime() in Validation::mimeType()

  • Loading branch information...
1 parent e3a6e9e commit fea4ae65231a144f28b1d9a4f19ca302c5c3ac79 @burzum burzum committed May 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Utility/Validation.php
@@ -872,9 +872,9 @@ public static function mimeType($check, $mimeTypes = array()) {
}
$File = new File($check);
- $info = $File->info();
+ $mime = $File->mime();
- return in_array($info['mime'], $mimeTypes);
+ return in_array($mime, $mimeTypes);
}
/**

0 comments on commit fea4ae6

Please sign in to comment.