mirrorlist: Display nothing if list is empty.

master
Joey Hess 2009-10-02 12:37:53 -04:00
parent 4b8dd76372
commit 0c6648f02c
2 changed files with 3 additions and 1 deletions

View File

@ -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);

1
debian/changelog vendored
View File

@ -7,6 +7,7 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
* toggle, relativedate: Support templates that add attributes
to the body tag.
* Support RPC::XML 0.69's incompatable object instantiation method.
* mirrorlist: Display nothing if list is empty.
-- Joey Hess <joeyh@debian.org> Sun, 27 Sep 2009 17:40:03 -0400