summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index fa340f50f..206a115a9 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -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());