Restore default behavior for empty titles.

This commit is contained in:
Colin Kuskie 2011-11-30 16:53:26 -08:00
parent 74159f7655
commit 234c6988ab

View file

@ -47,7 +47,7 @@ around title => sub {
if (@_ > 0) { if (@_ > 0) {
my $title = shift; my $title = shift;
$title = WebGUI::HTML::filter($title, 'all'); $title = WebGUI::HTML::filter($title, 'all');
$title = $self->meta->find_attribute_by_name('title')->default if $title eq ''; $title = $self->_default_title if $title eq '';
unshift @_, $title; unshift @_, $title;
} }
$self->$orig(@_); $self->$orig(@_);