aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2016-05-06 22:51:02 +0100
committerSimon McVittie <smcv@debian.org>2016-05-06 22:51:02 +0100
commit125461cab730871aef4f07e21ac8cf8c165808ee (patch)
treea05c4a889a3495083776be2288e0bb17b3a3f46c /IkiWiki
parent0abef571c74e054bd6dfbaee140f1b334cdaa6e2 (diff)
downloadikiwiki-125461cab730871aef4f07e21ac8cf8c165808ee.tar
ikiwiki-125461cab730871aef4f07e21ac8cf8c165808ee.tar.gz
inline: expand show=N backwards compatibility to negative N
[[plugins/contrib]] uses show=-1 to show the post-creation widget without actually inlining anything.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/inline.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index c3895d982..19dd684dd 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -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};
}