From: Joey Hess Date: Tue, 26 Aug 2008 22:04:45 +0000 (-0400) Subject: if extrafooter is already set, append to it X-Git-Tag: 2.62~8 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b1d8437f8abaaf94b69c07ba9607c53d8184b515 if extrafooter is already set, append to it to interoperate with future plugins using it --- 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 ($) { #{{{