Merge pull request #522 from kloy/master

Custom validation messages in language file fix.
This commit is contained in:
Taylor Otwell 2012-04-10 07:43:49 -07:00
commit a3e0c7c0c4
1 changed files with 8 additions and 8 deletions

View File

@ -692,7 +692,7 @@ protected function message($attribute, $rule)
{
return $this->messages[$custom];
}
elseif (Lang::has($custom = "validation.custom.{$custom}", $this->language))
elseif (Lang::has($custom = "{$bundle}validation.custom.{$custom}", $this->language))
{
return Lang::line($custom)->get($this->language);
}