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 '';
|
$output = "An error was encountered while processing your request." if $output eq '';
|
||||||
}
|
}
|
||||||
|
if ($session->errorHandler->canShowDebug()) {
|
||||||
|
$output .= $session->errorHandler->showDebug();
|
||||||
|
}
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ URL to the javascript to include in the page's header tags.
|
||||||
sub process {
|
sub process {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
$session->style->setScript(shift,{type=>'text/javascript'});
|
$session->style->setScript(shift,{type=>'text/javascript'});
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
||||||
|
|
@ -212,13 +212,12 @@ if ($self->session->user->isInGroup(2)) {
|
||||||
} else {
|
} else {
|
||||||
$output = "WebGUI was unable to instantiate your style template.".$var{'body.content'};
|
$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();
|
my $macroHeadTags = $self->generateAdditionalHeadTags();
|
||||||
WebGUI::Macro::process(\$macroHeadTags);
|
|
||||||
$output =~ s/\<\!--morehead--\>/$macroHeadTags/;
|
$output =~ s/\<\!--morehead--\>/$macroHeadTags/;
|
||||||
if ($self->session->errorHandler->canShowDebug()) {
|
# if ($self->session->errorHandler->canShowDebug()) {
|
||||||
$output .= $self->session->errorHandler->showDebug();
|
# $output .= $self->session->errorHandler->showDebug();
|
||||||
}
|
# }
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue