]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix logic
authorJoey Hess <joey@kitenet.net>
Fri, 23 Apr 2010 18:00:53 +0000 (14:00 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 23 Apr 2010 18:00:53 +0000 (14:00 -0400)
IkiWiki/Plugin/inline.pm

index 0436497420489a93964cdfc47d31abc34a17b9e2..2d47cb4befdfd8532904552dab2622c704c08c2e 100644 (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'));