Try to centralize all the menuTitle defaults in 1 place.

This commit is contained in:
Colin Kuskie 2009-12-28 18:37:53 -08:00
parent 6733595dfc
commit d7a31ea901

View file

@ -64,7 +64,7 @@ around menuTitle => sub {
if (@_ > 0) {
my $title = shift;
$title = WebGUI::HTML::filter($title, 'all');
$title = $self->title if $title eq '';
$title = $self->_default_menuTitle if $title eq '';
unshift @_, $title;
}
$self->$orig(@_);