Browse Source

fixed bug in validator->image rule.

Taylor Otwell 13 years ago
parent
commit
72658bd09a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/validator.php

+ 1 - 1
system/validator.php

@@ -334,7 +334,7 @@ class Validator {
 	 */
 	 */
 	protected function validate_image($attribute)
 	protected function validate_image($attribute)
 	{
 	{
-		return static::validate_mime($attribute, array('jpg', 'png', 'gif', 'bmp'));
+		return static::validate_mimes($attribute, array('jpg', 'png', 'gif', 'bmp'));
 	}
 	}
 
 
 	/**
 	/**