Fixing bug where custom validation messages in bundle language files were not getting picked up.

This commit is contained in:
Keith Loy 2012-04-09 21:11:54 -05:00
parent b7ac1b75af
commit 53e8f9b774
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);
}