]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
add figure and figcaption
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 5d99c9da230c7b9c370f0b1bdac0430ffe746cab..95fe9031256f3050c0902932b91e7b1e0e9570a5 100644 (file)
@@ -329,11 +329,16 @@ sub preprocess_inline (@) {
        if (! $feedonly) {
                my $template;
                if (! $raw) {
+                       # cannot use wiki pages as templates; template not sanitized due to
+                       # format hook hack
                        eval {
                                $template=template_depends($params{template}.".tmpl", $params{page},
                                        blind_cache => 1);
                        };
-                       if ($@ || ! $template) {
+                       if ($@) {
+                               error gettext("failed to process template:")." $@";
+                       }
+                       if (! $template) {
                                error sprintf(gettext("template %s not found"), $params{template}.".tmpl");
                        }
                }