use yesno
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 2 Sep 2008 22:20:17 +0000 (18:20 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 2 Sep 2008 22:20:17 +0000 (18:20 -0400)
IkiWiki/Plugin/table.pm

index 55d78a3e1c0e17592a8fc3429f5298614df5f89e..e782fc238dbd40b628f8675fefa36942d9be520c 100644 (file)
@@ -74,7 +74,7 @@ sub preprocess (@) { #{{{
        }
 
        my $header;
-       if (lc($params{header}) eq "row" || lc($params{header}) eq "yes") {
+       if (lc($params{header}) eq "row" || IkiWiki::yesno($params{header})) {
                $header=shift @data;
        }
        if (! @data) {