From c0fc50d35b1e3320b28b281c16489f78babc5abb Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sat, 27 Mar 2004 05:00:11 +0000 Subject: Patch for bug 237369: implement relatively simple changes from %FORM to $cgi->param variable; patch by Teemu Mannermaa ; r=kiko, justdave; a=justdave. --- showdependencytree.cgi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'showdependencytree.cgi') 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 }; ################################################################################ -- cgit v1.2.3-24-g4f1b