]> git.donarmstrong.com Git - debbugs.git/commitdiff
Add support for a height/width in the version_url function
authorDon Armstrong <don@volo>
Mon, 19 Feb 2007 08:04:48 +0000 (00:04 -0800)
committerDon Armstrong <don@volo>
Mon, 19 Feb 2007 08:04:48 +0000 (00:04 -0800)
Debbugs/CGI.pm

index e5f237581daacb066589bc2508b0f881f3160761..ea4d67b91a3f4e870a12ffb0d9735b7d7d0b36ee 100644 (file)
@@ -131,11 +131,13 @@ Creates a link to the version cgi script
 =cut
 
 sub version_url{
-     my ($package,$found,$fixed) = @_;
+     my ($package,$found,$fixed,$width,$height) = @_;
      my $url = Debbugs::URI->new('version.cgi?');
      $url->query_form(package => $package,
                      found   => $found,
                      fixed   => $fixed,
+                     (defined $width)?(width => $width):(),
+                     (defined $height)?(height => $height):()
                     );
      return $url->as_string;
 }