From 6a8a3bca2b16c00c447572da05097933c57f606c Mon Sep 17 00:00:00 2001 From: Nimit Suwannagate Date: Fri, 23 Nov 2012 00:42:55 +0700 Subject: [PATCH] Update laravel/validator.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: Replace :other with Validation Attributes (from validation.php in language folder) --- laravel/validator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/laravel/validator.php b/laravel/validator.php index ab446860..22298b70 100644 --- a/laravel/validator.php +++ b/laravel/validator.php @@ -972,7 +972,7 @@ protected function replace_mimes($message, $attribute, $rule, $parameters) */ protected function replace_same($message, $attribute, $rule, $parameters) { - return str_replace(':other', $parameters[0], $message); + return str_replace(':other', $this->attribute($parameters[0]), $message); } /** @@ -986,7 +986,7 @@ protected function replace_same($message, $attribute, $rule, $parameters) */ protected function replace_different($message, $attribute, $rule, $parameters) { - return str_replace(':other', $parameters[0], $message); + return str_replace(':other', $this->attribute($parameters[0]), $message); } /**