projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29cb940
)
if extrafooter is already set, append to it
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 26 Aug 2008 22:04:45 +0000
(18:04 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 26 Aug 2008 22:04:45 +0000
(18:04 -0400)
to interoperate with future plugins using it
IkiWiki/Plugin/mirrorlist.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/mirrorlist.pm
b/IkiWiki/Plugin/mirrorlist.pm
index 7e53fe068546488518a79c13365d3c1ee21c45da..aab60c435d271d60568f6824bcbfe684e3853ac6 100644
(file)
--- 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 ($) { #{{{