if extrafooter is already set, append to it
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 26 Aug 2008 22:04:45 +0000 (18:04 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 26 Aug 2008 22:04:45 +0000 (18:04 -0400)
to interoperate with future plugins using it

IkiWiki/Plugin/mirrorlist.pm

index 7e53fe068546488518a79c13365d3c1ee21c45da..aab60c435d271d60568f6824bcbfe684e3853ac6 100644 (file)
@@ -29,8 +29,11 @@ sub pagetemplate (@) { #{{{
        my %params=@_;
         my $template=$params{template};
        
-       $template->param(extrafooter => mirrorlist($params{page}))
-               if $template->query(name => "extrafooter");
+       if ($template->query(name => "extrafooter")) {
+               my $value=$template->param("extrafooter");
+               $value.=mirrorlist($params{page});
+               $template->param(extrafooter => $value);
+       }
 } # }}}
 
 sub mirrorlist ($) { #{{{