]> sipb.mit.edu Git - ikiwiki.git/commitdiff
mirrorlist: Display nothing if list is empty.
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 2 Oct 2009 16:37:53 +0000 (12:37 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 2 Oct 2009 16:37:53 +0000 (12:37 -0400)
IkiWiki/Plugin/mirrorlist.pm
debian/changelog

index 737dcf767379e69819bc71c4f7d02800be5b62f6..d0a6107efe8baa6cadd540eb710f5f8f422c6778 100644 (file)
@@ -29,7 +29,8 @@ sub pagetemplate (@) {
        my %params=@_;
         my $template=$params{template};
        
        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);
                my $value=$template->param("extrafooter");
                $value.=mirrorlist($params{page});
                $template->param(extrafooter => $value);
index b948aaf56dd2347b118f95acc7ea625863c959b0..b6383bacb33cda201bf2164d9389f799cba8223c 100644 (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.
   * 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
 
 
  -- Joey Hess <joeyh@debian.org>  Sun, 27 Sep 2009 17:40:03 -0400