]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/mirrorlist.pm
po: po_link_to is safe, and fallbacks to a working value if needed
[git.ikiwiki.info.git] / 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 ($) { #{{{