diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-23 14:00:53 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-23 14:00:53 -0400 |
commit | 011d88052d6dacb6a9d84b1489d37eefeb992da1 (patch) | |
tree | b7d129ba71b72d18343eeb68359164c22c8d0b50 | |
parent | 915d5bc32689623b1ff5594602a546e59f826b58 (diff) |
fix logic
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 4 |
1 files 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')); |