diff options
author | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-03-27 05:00:11 +0000 |
commit | c0fc50d35b1e3320b28b281c16489f78babc5abb (patch) | |
tree | 588957a4a2130089f67533b55ab3a7b7c6c53106 /showdependencytree.cgi | |
parent | Bug 232097: Use an entity reference for the landfill base URL in the demos, t... (diff) | |
download | bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.gz bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.tar.bz2 bugzilla-c0fc50d35b1e3320b28b281c16489f78babc5abb.zip |
Patch for bug 237369: implement relatively simple changes from %FORM to $cgi->param variable; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=kiko, justdave; a=justdave.
Diffstat (limited to 'showdependencytree.cgi')
-rwxr-xr-x | showdependencytree.cgi | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/showdependencytree.cgi b/showdependencytree.cgi index d9f642a3e..b82443226 100755 --- a/showdependencytree.cgi +++ b/showdependencytree.cgi @@ -31,8 +31,6 @@ require "CGI.pl"; # Use global template variables. use vars qw($template $vars); -use vars %::FORM; - ConnectToDatabase(); quietly_check_login(); @@ -52,12 +50,12 @@ $::userid = $::userid; # Make sure the bug ID is a positive integer representing an existing # bug that the user is authorized to access. -ValidateBugID($::FORM{'id'}); -my $id = $::FORM{'id'}; +my $id = $cgi->param('id'); +ValidateBugID($id); -my $hide_resolved = $::FORM{'hide_resolved'} ? 1 : 0; +my $hide_resolved = $cgi->param('hide_resolved') ? 1 : 0; -my $maxdepth = $::FORM{'maxdepth'} || 0; +my $maxdepth = $cgi->param('maxdepth') || 0; if ($maxdepth !~ /^\d+$/) { $maxdepth = 0 }; ################################################################################ |