Change the core to use newById instead of new.
This commit is contained in:
parent
04ee8f0949
commit
0bef2b2839
4 changed files with 4 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ This macro takes a templateId to show the links
|
|||
sub process {
|
||||
my $session = shift;
|
||||
my $templateId = shift || "_aE16Rr1-bXBf8SIaLZjCg";
|
||||
my $template = WebGUI::Asset::Template->new($session, $templateId);
|
||||
my $template = WebGUI::Asset::Template->newById($session, $templateId);
|
||||
return "Could not instanciate template with id [$templateId]" unless $template;
|
||||
my $i18n = WebGUI::International->new($session);
|
||||
my $languages = $i18n->getLanguages();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue