projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
conditional: use yesno
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
conditional.pm
diff --git
a/IkiWiki/Plugin/conditional.pm
b/IkiWiki/Plugin/conditional.pm
index 7445dbdad71420bb4228f573543ac673732b197c..7ead701f28a95b3e5286672534ebe47ed3d23c7d 100644
(file)
--- a/
IkiWiki/Plugin/conditional.pm
+++ b/
IkiWiki/Plugin/conditional.pm
@@
-29,7
+29,7
@@
sub preprocess_if (@) {
}
my $result=0;
- if (
(exists $params{all} && lc $params{all} eq "no"
) ||
+ if (
! IkiWiki::yesno($params{all}
) ||
# An optimisation to avoid needless looping over every page
# and adding of dependencies for simple uses of some of the
# tests.