summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-09 12:54:13 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-09 12:54:35 -0400
commitb7351daacd0d4a041a51b43d99b7bf589de54f53 (patch)
tree2f25cac3499875a37c6a1aa85e7f3453b2d5d3ef /IkiWiki/Plugin
parent96682e3084993428f4de384f5087cffdc29f1710 (diff)
conditional: use yesno
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/conditional.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/conditional.pm b/IkiWiki/Plugin/conditional.pm
index 7445dbdad..7ead701f2 100644
--- 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.