X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3d82d47e1896b8e64c1e22b09a05968fc481aebf..9bd3262f50eb3096482a24b0c15db47bce752c3d:/IkiWiki/Plugin/mirrorlist.pm diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm index f7c78fdee..aab60c435 100644 --- a/IkiWiki/Plugin/mirrorlist.pm +++ b/IkiWiki/Plugin/mirrorlist.pm @@ -12,6 +12,10 @@ sub import { #{{{ sub getsetup () { #{{{ return + plugin => { + safe => 1, + rebuild => 1, + }, mirrorlist => { type => "string", example => {}, @@ -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 ($) { #{{{