From 94c5aea057994bf33e906f73308035bbb160df52 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 10 Mar 2007 02:01:51 -0800 Subject: [PATCH] default to collapsed for things with width/height --- Debbugs/CGI.pm | 3 ++- cgi/version.cgi | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Debbugs/CGI.pm b/Debbugs/CGI.pm index 73b5bb6b..8e4cdd0f 100644 --- a/Debbugs/CGI.pm +++ b/Debbugs/CGI.pm @@ -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; } diff --git a/cgi/version.cgi b/cgi/version.cgi index 0fc1dafc..f0765f9a 100755 --- a/cgi/version.cgi +++ b/cgi/version.cgi @@ -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, -- 2.39.5