allow assetName to be a normal, non-i18n string
This commit is contained in:
parent
01b9d95259
commit
1f750691c0
1 changed files with 6 additions and 1 deletions
|
|
@ -1496,7 +1496,12 @@ Returns the human readable name of the asset.
|
||||||
|
|
||||||
sub getName {
|
sub getName {
|
||||||
my $self = shift;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue