blind_cache => 1);
};
if ($@) {
- error gettext("failed to process template:")." $@";
- }
- if (! $template) {
- error sprintf(gettext("template %s not found"), $params{template}.".tmpl");
+ error sprintf(gettext("failed to process template %s"), $params{template}.".tmpl").": $@";
}
}
my $needcontent=$raw || (!($archive && $quick) && $template->query(name => 'content'));
}
}
- my $file=$pagesources{$p};
- my $type=pagetype($file);
if ($itemtemplate->query(name => "enclosure")) {
+ my $file=$pagesources{$p};
+ my $type=pagetype($file);
if (defined $type) {
$itemtemplate->param(content => $pcontent);
}
}
}
else {
- next unless defined $type;
$itemtemplate->param(content => $pcontent);
}