aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-26 18:04:45 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-26 18:04:45 -0400
commitb1d8437f8abaaf94b69c07ba9607c53d8184b515 (patch)
tree2e9c1a1fc5e7c91f68e3d964e234e195894161bb
parent29cb940f7765dddd46f97b218a2a1f2446e2a27c (diff)
downloadikiwiki-b1d8437f8abaaf94b69c07ba9607c53d8184b515.tar
ikiwiki-b1d8437f8abaaf94b69c07ba9607c53d8184b515.tar.gz
if extrafooter is already set, append to it
to interoperate with future plugins using it
-rw-r--r--IkiWiki/Plugin/mirrorlist.pm7
1 files changed, 5 insertions, 2 deletions
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 ($) { #{{{