fix logic

master
Joey Hess 2010-04-23 14:00:53 -04:00
parent 915d5bc326
commit 011d88052d
1 changed files with 2 additions and 2 deletions

View File

@ -333,8 +333,8 @@ sub preprocess_inline (@) {
$template=template_depends($params{template}.".tmpl", $params{page},
blind_cache => 1);
};
if (! $@ || ! $template) {
error sprintf(gettext("nonexistant template %s"), $params{template});
if ($@ || ! $template) {
error sprintf(gettext("nonexistant template %s.tmpl"), $params{template});
}
}
my $needcontent=$raw || (!($archive && $quick) && $template->query(name => 'content'));