fix for frank's problem

This commit is contained in:
JT Smith 2006-05-12 17:06:57 +00:00
parent 8ad1189b8c
commit 462c12c814

View file

@ -267,7 +267,8 @@ This method sets the tags from the head block parameter of the template into the
sub prepare {
my $self = shift;
$self->{_prepared} = 1;
my @sent = @{$self->session->stow->get("templateHeadersSent")};
my $templateHeadersSent = $self->session->stow->get("templateHeadersSent") || [];
my @sent = @{$templateHeadersSent};
unless (isIn($self->getId, @sent)) { # don't send head block if we've already sent it for this template
if ($self->session->style->sent) {
$self->session->output->print($self->get("headBlock"));