]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Setup/Standard.pm
web commit by joey
[git.ikiwiki.info.git] / IkiWiki / Setup / Standard.pm
index 9883b922a5514da91ce5d820dfe2da2bca148f06..786ba70ace16abfaaa02498e3afb7e39a74f321a 100644 (file)
@@ -21,15 +21,20 @@ sub setup_standard {
 
        if (! $config{refresh}) {
                debug("generating wrappers..");
+               my @wrappers=@{$setup{wrappers}};
+               delete $setup{wrappers};
                my %startconfig=(%config);
-               foreach my $wrapper (@{$setup{wrappers}}) {
+               foreach my $wrapper (@wrappers) {
                        %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
                        checkconfig();
                        gen_wrapper();
                }
                %config=(%startconfig);
-               delete $config{wrappers};
        }
+       else {
+               delete $setup{wrappers};
+       }
+       
        foreach my $c (keys %setup) {
                if (defined $setup{$c}) {
                        if (! ref $setup{$c}) {