fixing syntax errors
This commit is contained in:
parent
e04a1b6fca
commit
539f22285e
2 changed files with 4 additions and 3 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
- The Navigation Asset now allows setting the MIME type of its output so that
|
- 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
|
you can generate non-HTML navigations or take advantate of the Google
|
||||||
SiteMap feature.
|
SiteMap feature.
|
||||||
|
- [ 1433525 ] 6.9: Compilation errors
|
||||||
|
|
||||||
6.8.7
|
6.8.7
|
||||||
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
- fix [ 1431098 ] op=becomeUser can become non-existent userIds
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ A hash reference containing template variables and loops.
|
||||||
sub process {
|
sub process {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
my $template = shift;
|
my $template = shift;
|
||||||
my $vars = $self->addSessionVars(shift);
|
my $vars = $class->addSessionVars(shift);
|
||||||
my $t;
|
my $t;
|
||||||
eval {
|
eval {
|
||||||
$t = HTML::Template::Expr->new(scalarref=>\$template,
|
$t = HTML::Template::Expr->new(scalarref=>\$template,
|
||||||
|
|
@ -65,8 +65,8 @@ sub process {
|
||||||
$t->param(%{$vars});
|
$t->param(%{$vars});
|
||||||
return $t->output;
|
return $t->output;
|
||||||
} else {
|
} else {
|
||||||
$self->session->errorHandler->error("Error in template. ".$@);
|
$class->session->errorHandler->error("Error in template. ".$@);
|
||||||
return WebGUI::International->new($self->session,'Asset_Template')->get('template error').$@;
|
return WebGUI::International->new($class->session,'Asset_Template')->get('template error').$@;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue