diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-02 12:37:53 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-02 12:37:53 -0400 |
commit | 0c6648f02c56a867d1078832921b185c3fce310d (patch) | |
tree | bf68e5a888a9f8b867e8e8fa87d0b74322dcd873 /IkiWiki/Plugin | |
parent | 4b8dd763729fccc1a36b3d128ea0f7957f3e537a (diff) | |
download | ikiwiki-0c6648f02c56a867d1078832921b185c3fce310d.tar ikiwiki-0c6648f02c56a867d1078832921b185c3fce310d.tar.gz |
mirrorlist: Display nothing if list is empty.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/mirrorlist.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/mirrorlist.pm b/IkiWiki/Plugin/mirrorlist.pm index 737dcf767..d0a6107ef 100644 --- a/IkiWiki/Plugin/mirrorlist.pm +++ b/IkiWiki/Plugin/mirrorlist.pm @@ -29,7 +29,8 @@ sub pagetemplate (@) { my %params=@_; my $template=$params{template}; - if ($template->query(name => "extrafooter")) { + if ($template->query(name => "extrafooter") && + keys %{$config{mirrorlist}} > 0) { my $value=$template->param("extrafooter"); $value.=mirrorlist($params{page}); $template->param(extrafooter => $value); |