fixed a macro problem
This commit is contained in:
parent
82156de83c
commit
80fc76691f
3 changed files with 7 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue