put preprocess loop errors inside an error span
parent
8a45362d55
commit
e829930008
11
IkiWiki.pm
11
IkiWiki.pm
|
@ -764,13 +764,10 @@ sub preprocess ($$$;$$) { #{{{
|
||||||
if ($preprocessing{$page}++ > 3) {
|
if ($preprocessing{$page}++ > 3) {
|
||||||
# Avoid loops of preprocessed pages preprocessing
|
# Avoid loops of preprocessed pages preprocessing
|
||||||
# other pages that preprocess them, etc.
|
# other pages that preprocess them, etc.
|
||||||
#translators: The first parameter is a
|
return "[[!$command <span class=\"error\">".
|
||||||
#translators: preprocessor directive name,
|
sprintf(gettext("preprocessing loop detected on %s at depth %i"),
|
||||||
#translators: the second a page name, the
|
$page, $preprocessing{$page}).
|
||||||
#translators: third a number.
|
"</span>]]";
|
||||||
return "[[".sprintf(gettext("%s preprocessing loop detected on %s at depth %i"),
|
|
||||||
$command, $page, $preprocessing{$page}).
|
|
||||||
"]]";
|
|
||||||
}
|
}
|
||||||
my $ret;
|
my $ret;
|
||||||
if (! $scan) {
|
if (! $scan) {
|
||||||
|
|
Loading…
Reference in New Issue