inline: expand show=N backwards compatibility to negative N

[[plugins/contrib]] uses show=-1 to show the post-creation widget
without actually inlining anything.
master
Simon McVittie 2016-05-06 22:51:02 +01:00
parent 0abef571c7
commit 125461cab7
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ sub preprocess_inline (@) {
my $feedonly=yesno($params{feedonly});
# Backwards compatibility
if (defined $params{show} && $params{show} =~ m/^\d+$/) {
if (defined $params{show} && $params{show} =~ m/^-?\d+$/) {
$params{limit} = $params{show};
delete $params{show};
}