Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for rename of recentchanges.mdwn to json.tl.ph.mdwn
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
template.pm
diff --git
a/IkiWiki/Plugin/template.pm
b/IkiWiki/Plugin/template.pm
index 3df06e652eeee285d51690b9d2178d6e0fb2b8ca..ccc9cb6664e5617c514ba6715107a2c4d1ddc448 100644
(file)
--- a/
IkiWiki/Plugin/template.pm
+++ b/
IkiWiki/Plugin/template.pm
@@
-41,9
+41,11
@@
sub preprocess (@) {
blind_cache => 1);
};
if ($@) {
blind_cache => 1);
};
if ($@) {
+ # gettext can clobber $@
+ my $error = $@;
error sprintf(gettext("failed to process template %s"),
htmllink($params{page}, $params{destpage},
error sprintf(gettext("failed to process template %s"),
htmllink($params{page}, $params{destpage},
- "/templates/$params{id}"))." $
@
";
+ "/templates/$params{id}"))." $
error
";
}
$params{basename}=IkiWiki::basename($params{page});
}
$params{basename}=IkiWiki::basename($params{page});