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/shortcut.pm | |
parent | edb59cd5b949de7a68f3b74e7949bf3893b23c6a (diff) | |
download | ikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar ikiwiki-ffc99f5904934e6e7532bb8cfdebb44ad9ecd913.tar.gz |
switch preprocess hooks to use error function
Diffstat (limited to 'IkiWiki/Plugin/shortcut.pm')
-rw-r--r-- | IkiWiki/Plugin/shortcut.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/shortcut.pm b/IkiWiki/Plugin/shortcut.pm index f1a38ea48..8df60cfe2 100644 --- a/IkiWiki/Plugin/shortcut.pm +++ b/IkiWiki/Plugin/shortcut.pm @@ -24,7 +24,7 @@ sub preprocess_shortcut (@) { #{{{ my %params=@_; if (! defined $params{name} || ! defined $params{url}) { - return "[[shortcut ".gettext("missing name or url parameter")."]]"; + error gettext("missing name or url parameter"); } hook(type => "preprocess", no_override => 1, id => $params{name}, |