From fef1809982e2b6fb726168f25192f9a084f44748 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 27 Jun 2011 21:08:49 -0500 Subject: [PATCH] fix syntax error in upload_of... add types to file_wrong_type lang message. --- application/lang/en/validation.php | 2 +- system/validation/rules/upload_of.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/lang/en/validation.php b/application/lang/en/validation.php index be2aaf66..67d22c34 100644 --- a/application/lang/en/validation.php +++ b/application/lang/en/validation.php @@ -45,7 +45,7 @@ |-------------------------------------------------------------------------- */ - "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.", ); \ No newline at end of file diff --git a/system/validation/rules/upload_of.php b/system/validation/rules/upload_of.php index 77d71bbb..4dfba8ca 100644 --- a/system/validation/rules/upload_of.php +++ b/system/validation/rules/upload_of.php @@ -106,7 +106,7 @@ public function is() */ 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; }