fixed a macro problem

This commit is contained in:
JT Smith 2006-01-30 18:22:54 +00:00
parent 82156de83c
commit 80fc76691f
3 changed files with 7 additions and 6 deletions

View file

@ -117,6 +117,9 @@ sub page {
}
$output = "An error was encountered while processing your request." if $output eq '';
}
if ($session->errorHandler->canShowDebug()) {
$output .= $session->errorHandler->showDebug();
}
return $output;
}

View file

@ -35,7 +35,6 @@ URL to the javascript to include in the page's header tags.
sub process {
my $session = shift;
$session->style->setScript(shift,{type=>'text/javascript'});
return "";
}
1;

View file

@ -212,13 +212,12 @@ if ($self->session->user->isInGroup(2)) {
} else {
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};
}
WebGUI::Macro::process(\$output);
WebGUI::Macro::process($self->session,\$output);
my $macroHeadTags = $self->generateAdditionalHeadTags();
WebGUI::Macro::process(\$macroHeadTags);
$output =~ s/\<\!--morehead--\>/$macroHeadTags/;
if ($self->session->errorHandler->canShowDebug()) {
$output .= $self->session->errorHandler->showDebug();
}
# if ($self->session->errorHandler->canShowDebug()) {
# $output .= $self->session->errorHandler->showDebug();
# }
return $output;
}