Update laravel/validator.php

Fix: Replace :other with Validation Attributes (from validation.php in language folder)
This commit is contained in:
Nimit Suwannagate 2012-11-23 00:42:55 +07:00
parent d2fefa65aa
commit 6a8a3bca2b
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/**