aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/inline.pm')
-rw-r--r--IkiWiki/Plugin/inline.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 5d99c9da2..95fe90312 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -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");
}
}