Change the core to use newById instead of new.

This commit is contained in:
Colin Kuskie 2010-05-09 14:30:47 -07:00
parent 04ee8f0949
commit 0bef2b2839
4 changed files with 4 additions and 4 deletions

View file

@ -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();