diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-13 15:05:34 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-13 15:05:34 -0400 |
commit | ffc99f5904934e6e7532bb8cfdebb44ad9ecd913 (patch) | |
tree | ec5d4d68b68c4fbbd77d33b51e59056ec011bc80 /IkiWiki/Plugin/conditional.pm | |
parent | edb59cd5b949de7a68f3b74e7949bf3893b23c6a (diff) | |
download | ikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar ikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar.gz |
switch preprocess hooks to use error function
Diffstat (limited to 'IkiWiki/Plugin/conditional.pm')
-rw-r--r-- | IkiWiki/Plugin/conditional.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/conditional.pm b/IkiWiki/Plugin/conditional.pm index 57db01054..6be52eaa6 100644 --- a/IkiWiki/Plugin/conditional.pm +++ b/IkiWiki/Plugin/conditional.pm @@ -15,7 +15,7 @@ sub preprocess_if (@) { #{{{ foreach my $param (qw{test then}) { if (! exists $params{$param}) { - return "[[if ".sprintf(gettext('%s parameter is required'), $param)."]]"; + error sprintf(gettext('%s parameter is required'), $param); } } |