]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/mirrorlist.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / mirrorlist.pm
index c7630d81f0b60911fed26b32baba015e3ea9757c..aab60c435d271d60568f6824bcbfe684e3853ac6 100644 (file)
@@ -12,9 +12,13 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
                mirrorlist => {
                        type => "string",
-                       default => "",
+                       example => {},
                        description => "list of mirrors",
                        safe => 1,
                        rebuild => 1,
@@ -25,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 ($) { #{{{