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
parent
0abef571c7
commit
125461cab7
|
@ -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};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue