fix: macros not processed in HttpProxy template

This commit is contained in:
Graham Knop 2007-07-19 18:18:16 +00:00
parent ab42b4a133
commit 75457b765d
2 changed files with 8 additions and 1 deletions

View file

@ -419,7 +419,12 @@ sub view {
if($var{header} ne "text/html") {
return $var{content};
} else {
return $self->processTemplate(\%var,undef,$self->{_viewTemplate});
my $content = $var{content};
$var{content} = '~~~';
my $output = $self->processTemplate(\%var,undef,$self->{_viewTemplate});
WebGUI::Macro::process($self->session, \$output);
my ($head, $foot) = split('~~~', $output);
return $head . $content . $foot;
}
}