From b1d8437f8abaaf94b69c07ba9607c53d8184b515 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 26 Aug 2008 18:04:45 -0400 Subject: if extrafooter is already set, append to it to interoperate with future plugins using it --- IkiWiki/Plugin/mirrorlist.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin') 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 ($) { #{{{ -- cgit v1.2.3