fixing syntax errors

This commit is contained in:
Colin Kuskie 2006-02-18 17:48:01 +00:00
parent e04a1b6fca
commit 539f22285e
2 changed files with 4 additions and 3 deletions

View file

@ -37,6 +37,7 @@
- The Navigation Asset now allows setting the MIME type of its output so that
you can generate non-HTML navigations or take advantate of the Google
SiteMap feature.
- [ 1433525 ] 6.9: Compilation errors
6.8.7
- fix [ 1431098 ] op=becomeUser can become non-existent userIds

View file

@ -51,7 +51,7 @@ A hash reference containing template variables and loops.
sub process {
my $class = shift;
my $template = shift;
my $vars = $self->addSessionVars(shift);
my $vars = $class->addSessionVars(shift);
my $t;
eval {
$t = HTML::Template::Expr->new(scalarref=>\$template,
@ -65,8 +65,8 @@ sub process {
$t->param(%{$vars});
return $t->output;
} else {
$self->session->errorHandler->error("Error in template. ".$@);
return WebGUI::International->new($self->session,'Asset_Template')->get('template error').$@;
$class->session->errorHandler->error("Error in template. ".$@);
return WebGUI::International->new($class->session,'Asset_Template')->get('template error').$@;
}
}