Commit fef18099 authored by Taylor Otwell's avatar Taylor Otwell

fix syntax error in upload_of... add types to file_wrong_type lang message.

parent 2c4e8075
...@@ -45,7 +45,7 @@ return array( ...@@ -45,7 +45,7 @@ return array(
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
"file_wrong_type" => "The :attribute is an invalid file type.", "file_wrong_type" => "The :attribute must be a file of type: :types.",
"file_too_big" => "The :attribute exceeds size limit of :maxkb.", "file_too_big" => "The :attribute exceeds size limit of :maxkb.",
); );
\ No newline at end of file
...@@ -106,7 +106,7 @@ class Upload_Of extends Nullable_Rule { ...@@ -106,7 +106,7 @@ class Upload_Of extends Nullable_Rule {
*/ */
public function is_image() public function is_image()
{ {
$this->types = array_merge($this->types, array('jpg', 'gif', 'png', 'bmp')) $this->types = array_merge($this->types, array('jpg', 'gif', 'png', 'bmp'));
return $this; return $this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment