diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 15:39:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 15:39:41 -0400 |
commit | b073359b18be7940d5138037a6423b8c45bfa39f (patch) | |
tree | 82f40840f1c90fcbc7ca3b4b380e356cfc41ab18 /IkiWiki/Setup | |
parent | 1c00717cb2737bde3870b2fe504f40bb7d215477 (diff) |
refactor
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index ed4331d61..22bfc38a4 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -71,9 +71,7 @@ sub dumpvalues ($@) { #{{{ return @ret; } #}}} -sub dump ($) { #{{{ - my $file=IkiWiki::possibly_foolish_untaint(shift); - +sub gendump () { #{{{ my %setup=(%config); my @ret; @@ -100,9 +98,7 @@ sub dump ($) { #{{{ use IkiWiki::Setup::Standard {"; push @ret, "}"; - open (OUT, ">", $file) || die "$file: $!"; - print OUT "$_\n" foreach @ret; - close OUT; + return @ret; } #}}} 1 |