summaryrefslogtreecommitdiffstats
path: root/editcomponents.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editcomponents.cgi')
-rwxr-xr-xeditcomponents.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editcomponents.cgi b/editcomponents.cgi
index 1cac27a99..5ed7a28d7 100755
--- a/editcomponents.cgi
+++ b/editcomponents.cgi
@@ -31,6 +31,7 @@ use lib ".";
require "CGI.pl";
require "globals.pl";
+use Bugzilla::Constants;
use Bugzilla::Config qw(:DEFAULT $datadir);
use Bugzilla::Series;
@@ -195,8 +196,7 @@ sub PutTrailer (@)
# Preliminary checks:
#
-ConnectToDatabase();
-confirm_login();
+Bugzilla->login(LOGIN_REQUIRED);
print Bugzilla->cgi->header();