fixed bug in validator->image rule.
This commit is contained in:
@@ -334,7 +334,7 @@ class Validator {
|
||||
*/
|
||||
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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user