summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/pagetemplate.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-13 15:05:34 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-13 15:05:34 -0400
commitffc99f5904934e6e7532bb8cfdebb44ad9ecd913 (patch)
treeec5d4d68b68c4fbbd77d33b51e59056ec011bc80 /IkiWiki/Plugin/pagetemplate.pm
parentedb59cd5b949de7a68f3b74e7949bf3893b23c6a (diff)
switch preprocess hooks to use error function
Diffstat (limited to 'IkiWiki/Plugin/pagetemplate.pm')
-rw-r--r--IkiWiki/Plugin/pagetemplate.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/pagetemplate.pm b/IkiWiki/Plugin/pagetemplate.pm
index 69a2433a8..205f5a9d7 100644
--- a/IkiWiki/Plugin/pagetemplate.pm
+++ b/IkiWiki/Plugin/pagetemplate.pm
@@ -18,7 +18,7 @@ sub preprocess (@) { #{{{
if (! exists $params{template} ||
$params{template} !~ /^[-A-Za-z0-9._+]+$/ ||
! defined IkiWiki::template_file($params{template})) {
- return "[[pagetemplate ".gettext("bad or missing template")."]]";
+ error gettext("bad or missing template")
}
if ($params{page} eq $params{destpage}) {