Refix synopsis output as metadata.

This commit is contained in:
Colin Kuskie 2009-04-14 19:33:16 +00:00
parent 99cb11e115
commit ba156edb5a
3 changed files with 21 additions and 11 deletions

View file

@ -2165,7 +2165,15 @@ The content to wrap up.
sub processStyle {
my ($self, $output) = @_;
$self->session->style->setRawHeadTags($self->getExtraHeadTags);
my $session = $self->session;
my $style = $session->style;
$style->setRawHeadTags($self->getExtraHeadTags);
if ($self->get('synopsis')) {
$style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
return $output;
}
@ -2739,12 +2747,6 @@ sub www_view {
return $check if (defined $check);
# if all else fails
if ($self->get('synopsis')) {
$self->session->style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
$self->prepareView;
$self->session->output->print($self->view);
return undef;

View file

@ -380,10 +380,17 @@ An HTML blob to be parsed into the current style.
=cut
sub processStyle {
my $self = shift;
my $output = shift;
$self->session->style->setRawHeadTags($self->getExtraHeadTags);
return $self->session->style->process($output,$self->get("styleTemplateId"));
my ($self, $output) = @_;
my $session = $self->session;
my $style = $session->style;
$style->setRawHeadTags($self->getExtraHeadTags);
if ($self->get('synopsis')) {
$style->setMeta({
name => 'Description',
content => $self->get('synopsis'),
});
}
return $style->process($output,$self->get("styleTemplateId"));
}