allow assetName to be a normal, non-i18n string

This commit is contained in:
Doug Bell 2011-05-17 11:52:03 -05:00
parent 01b9d95259
commit 1f750691c0

View file

@ -1496,7 +1496,12 @@ Returns the human readable name of the asset.
sub getName {
my $self = shift;
return WebGUI::International->new($self->session, 'Asset')->get(@{ $self->assetName });
if ( ref $self->assetName eq 'ARRAY' ) {
return WebGUI::International->new($self->session, 'Asset')->get(@{ $self->assetName });
}
else {
return $self->assetName;
}
}