Skip to content

Commit

Permalink
Fixed return value on ValidationException::guessId()
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Gomes Gaigalas committed Apr 12, 2011
1 parent 7a4d52c commit 5718a80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ protected function buildTemplate()
protected function guessId()
{
if (!empty($this->id) && $this->id != 'validation')
return;
return $this->id;
$id = end(explode('\\', get_called_class()));
$id = lcfirst(str_replace('Exception', '', $id));
return $id;
Expand Down

0 comments on commit 5718a80

Please sign in to comment.