Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0cd9365d
Commit
0cd9365d
authored
Nov 08, 2003
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 186130 - collectstats.pl doesn't work if 'requirelogin' set. Patch by gerv;…
Bug 186130 - collectstats.pl doesn't work if 'requirelogin' set. Patch by gerv; r=bbaetz, a=justdave.
parent
7654b510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
duplicates.cgi
duplicates.cgi
+10
-1
No files found.
duplicates.cgi
View file @
0cd9365d
...
...
@@ -36,6 +36,7 @@ use vars qw($buffer);
use
Bugzilla
;
use
Bugzilla::
Search
;
use
Bugzilla::
Constants
;
my
$cgi
=
Bugzilla
->
cgi
;
...
...
@@ -57,7 +58,15 @@ use vars qw($template $vars);
ConnectToDatabase
();
GetVersionTable
();
quietly_check_login
();
# collectstats.pl uses duplicates.cgi to generate the RDF duplicates stats.
# However, this conflicts with requirelogin if it's enabled; so we make
# logging-in optional if we are running from the command line.
if
(
$::ENV
{
'GATEWAY_INTERFACE'
}
eq
"cmdline"
)
{
Bugzilla
->
login
(
LOGIN_OPTIONAL
);
}
else
{
Bugzilla
->
login
(
LOGIN_NORMAL
);
}
Bugzilla
->
switch_to_shadow_db
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment