]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/conditional.pm
conditional: use yesno
[ikiwiki.git] / IkiWiki / Plugin / conditional.pm
index 7445dbdad71420bb4228f573543ac673732b197c..7ead701f28a95b3e5286672534ebe47ed3d23c7d 100644 (file)
@@ -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.