]> git.donarmstrong.com Git - debbugs.git/commitdiff
default to collapsed for things with width/height
authorDon Armstrong <don@volo>
Sat, 10 Mar 2007 10:01:51 +0000 (02:01 -0800)
committerDon Armstrong <don@volo>
Sat, 10 Mar 2007 10:01:51 +0000 (02:01 -0800)
Debbugs/CGI.pm
cgi/version.cgi

index 73b5bb6b56f4825cd2a58ff007e6fdd419db758c..8e4cdd0f1437a037878392e4c0d0b6262d7b6b21 100644 (file)
@@ -138,7 +138,8 @@ sub version_url{
                      found   => $found,
                      fixed   => $fixed,
                      (defined $width)?(width => $width):(),
-                     (defined $height)?(height => $height):()
+                     (defined $height)?(height => $height):(),
+                     (defined $width or defined $height)?(collapse => 1):(),
                     );
      return $url->as_string;
 }
index 0fc1dafc6961569f02683bc3add90c866c612734..f0765f9a151ac61df1e9d9d0c9150b3b08adc16d 100755 (executable)
@@ -39,7 +39,7 @@ my %cgi_var = cgi_parameters(query   => $q,
                                         found         => [],
                                         fixed         => [],
                                         ignore_boring => 1,
-                                        collapse      => 1,
+                                        collapse      => 0,
                                         format        => 'png',
                                         width         => undef,
                                         height        => undef,