aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/template.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/template.pm
parentedb59cd5b949de7a68f3b74e7949bf3893b23c6a (diff)
downloadikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar
ikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar.gz
switch preprocess hooks to use error function
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r--IkiWiki/Plugin/template.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index aa1f57c07..c33dbbb83 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -16,7 +16,7 @@ sub preprocess (@) { #{{{
my %params=@_;
if (! exists $params{id}) {
- return "[[template ".gettext("missing id parameter")."]]";
+ error gettext("missing id parameter")
}
my $template_page="templates/$params{id}";
@@ -42,7 +42,7 @@ sub preprocess (@) { #{{{
);
};
if ($@) {
- return "[[template ".gettext("failed to process:")." $@]]";
+ error gettext("failed to process:")." $@"
}
$params{basename}=IkiWiki::basename($params{page});