From 3e52133431f50f96fd156635b52f0e8b72f2526f Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 17 Apr 2006 21:50:03 +0000 Subject: [PATCH] fixed [ 1470275 ] 6.99: HTML output before DOCTYPE --- lib/WebGUI/Session/Style.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Session/Style.pm b/lib/WebGUI/Session/Style.pm index b4d48a95b..adaca7cf4 100644 --- a/lib/WebGUI/Session/Style.pm +++ b/lib/WebGUI/Session/Style.pm @@ -90,6 +90,7 @@ sub generateAdditionalHeadTags { delete $self->{_raw}; delete $self->{_javascript}; delete $self->{_link}; + WebGUI::Macro::process($self->session,\$tags); return $tags; } @@ -148,7 +149,6 @@ The unique identifier for the template to retrieve. sub process { my $self = shift; - $self->sent(1); my %var; $var{'body.content'} = shift; my $templateId = shift; @@ -197,6 +197,7 @@ if ($self->session->user->isInGroup(2)) { $output = "WebGUI was unable to instantiate your style template.".$var{'body.content'}; } WebGUI::Macro::process($self->session,\$output); + $self->sent(1); my $macroHeadTags = $self->generateAdditionalHeadTags(); $output =~ s/\<\!--morehead--\>/$macroHeadTags/; return $output;