if extrafooter is already set, append to it

to interoperate with future plugins using it
master
Joey Hess 2008-08-26 18:04:45 -04:00
parent 29cb940f77
commit b1d8437f8a
1 changed files with 5 additions and 2 deletions

View File

@ -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 ($) { #{{{