From 011d88052d6dacb6a9d84b1489d37eefeb992da1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 23 Apr 2010 14:00:53 -0400 Subject: fix logic --- IkiWiki/Plugin/inline.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); -- cgit v1.2.3