fixed bug in validator->image rule.
This commit is contained in:
parent
4d647c33c0
commit
72658bd09a
|
@ -334,7 +334,7 @@ protected function validate_active_url($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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue