X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/903213e63fd6c409046f66e73881aba33c3926de..9b20e0a24ef0bba1a04eb5d29a5a855f242cd933:/IkiWiki/Plugin/mirrorlist.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm index 7e53fe068..aab60c435 100644 --- a/IkiWiki/Plugin/mirrorlist.pm +++ b/IkiWiki/Plugin/mirrorlist.pm @@ -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 ($) { #{{{