From: Joey Hess Date: Fri, 23 Apr 2010 18:00:53 +0000 (-0400) Subject: fix logic X-Git-Tag: 3.20100427~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=011d88052d6dacb6a9d84b1489d37eefeb992da1;p=ikiwiki.git fix logic --- diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 043649742..2d47cb4be 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -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'));