diff --git a/wiki.pl b/wiki.pl index 501470d4..ad4ffbae 100755 --- a/wiki.pl +++ b/wiki.pl @@ -1571,6 +1571,10 @@ sub StripRollbacks { splice(@result, $i, 1); # strip rolled back single pages } } + } else { # if rollbacks are not not shown, just strip the markers + for (my $i = $#result; $i >= 0; $i--) { + splice(@result, $i, 1) if $result[$i][1] eq '[[rollback]]'; # id + } } return @result; }