Bug 201816 - use CGI.pm for header output

r=joel, a=justdave


git-svn-id: svn://10.0.0.236/trunk@142113 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bbaetz%acm.org
2003-05-05 01:15:38 +00:00
parent 9a159a50ba
commit 9e1d7096ea
51 changed files with 351 additions and 204 deletions

View File

@@ -24,6 +24,8 @@ use strict;
use lib qw(.);
use Bugzilla;
require "CGI.pl";
use RelationSet;
@@ -354,6 +356,8 @@ confirm_login();
GetVersionTable();
my $cgi = Bugzilla->cgi;
$vars->{'login'} = $::COOKIE{'Bugzilla_login'};
$vars->{'changes_saved'} = $::FORM{'dosave'};
@@ -390,7 +394,7 @@ SWITCH: for ($current_tab_name) {
}
# Generate and return the UI (HTML page) from the appropriate template.
print "Content-type: text/html\n\n";
print $cgi->header();
$template->process("account/prefs/prefs.html.tmpl", $vars)
|| ThrowTemplateError($template->error());