From: Simon McVittie Date: Fri, 6 May 2016 21:51:02 +0000 (+0100) Subject: inline: expand show=N backwards compatibility to negative N X-Git-Tag: debian/3.20160509~18 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/125461cab730871aef4f07e21ac8cf8c165808ee inline: expand show=N backwards compatibility to negative N [[plugins/contrib]] uses show=-1 to show the post-creation widget without actually inlining anything. --- 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}; }