use error for two messages
parent
4dc4c9586d
commit
42b4abee1d
|
@ -201,7 +201,7 @@ sub preprocess_inline (@) { #{{{
|
||||||
@list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
|
@list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return sprintf(gettext("unknown sort type %s"), $params{sort});
|
error sprintf(gettext("unknown sort type %s"), $params{sort});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (yesno($params{reverse})) {
|
if (yesno($params{reverse})) {
|
||||||
|
@ -298,7 +298,7 @@ sub preprocess_inline (@) { #{{{
|
||||||
require HTML::Template;
|
require HTML::Template;
|
||||||
my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
|
my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
|
||||||
if (! @params) {
|
if (! @params) {
|
||||||
return sprintf(gettext("nonexistant template %s"), $params{template});
|
error sprintf(gettext("nonexistant template %s"), $params{template});
|
||||||
}
|
}
|
||||||
my $template=HTML::Template->new(@params) unless $raw;
|
my $template=HTML::Template->new(@params) unless $raw;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue