X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/d73d4fed0313db5f7dd08498871c304888d8d5e8..b269835a7fa07c2bf5d469399324b7d2a8a8fbb1:/IkiWiki.pm diff --git a/IkiWiki.pm b/IkiWiki.pm index c1d9119e8..f1a5f8058 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -337,7 +337,7 @@ sub readfile ($;$$) { #{{{ return $ret; } #}}} -sub prep_writefile ($$) { +sub prep_writefile ($$) { #{{{ my $file=shift; my $destdir=shift; @@ -361,7 +361,7 @@ sub prep_writefile ($$) { } return 1; -} +} #}}} sub writefile ($$$;$$) { #{{{ my $file=shift; # can include subdirs @@ -1202,6 +1202,12 @@ sub gettext { #{{{ } } #}}} +sub yesno ($) { #{{{ + my $val=shift; + + return (defined $val && lc($val) eq gettext("yes")); +} #}}} + sub pagespec_merge ($$) { #{{{ my $a=shift; my $b=shift;