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
bfa4c5ae
Commit
bfa4c5ae
authored
Dec 16, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 467701: USAGE_MODE_CMDLINE should be the default if not i_am_cgi()
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
82262256
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
13 deletions
+1
-13
Bugzilla.pm
Bugzilla.pm
+1
-1
checksetup.pl
checksetup.pl
+0
-1
collectstats.pl
collectstats.pl
+0
-3
bzdbcopy.pl
contrib/bzdbcopy.pl
+0
-2
importxml.pl
importxml.pl
+0
-4
sanitycheck.pl
sanitycheck.pl
+0
-2
No files found.
Bugzilla.pm
View file @
bfa4c5ae
...
...
@@ -372,7 +372,7 @@ sub usage_mode {
$class
->
request_cache
->
{
usage_mode
}
=
$newval
;
}
return
$class
->
request_cache
->
{
usage_mode
}
||
Bugzilla::Constants::
USAGE_MODE_BROWSER
;
||
(
i_am_cgi
()?
USAGE_MODE_BROWSER
:
USAGE_MODE_CMDLINE
)
;
}
sub
installation_mode
{
...
...
checksetup.pl
View file @
bfa4c5ae
...
...
@@ -115,7 +115,6 @@ require Bugzilla::Template;
require
Bugzilla::
Field
;
require
Bugzilla::
Install
;
Bugzilla
->
usage_mode
(
USAGE_MODE_CMDLINE
);
Bugzilla
->
installation_mode
(
INSTALLATION_MODE_NON_INTERACTIVE
)
if
$answers_file
;
Bugzilla
->
installation_answers
(
$answers_file
);
...
...
collectstats.pl
View file @
bfa4c5ae
...
...
@@ -59,9 +59,6 @@ if (chdir("graphs")) {
chdir
(
$cwd
);
}
# This is a pure command line script.
Bugzilla
->
usage_mode
(
USAGE_MODE_CMDLINE
);
my
$dbh
=
Bugzilla
->
switch_to_shadow_db
();
...
...
contrib/bzdbcopy.pl
View file @
bfa4c5ae
...
...
@@ -48,8 +48,6 @@ use constant TARGET_DB_HOST => 'localhost';
# MAIN SCRIPT
#####################################################################
Bugzilla
->
usage_mode
(
USAGE_MODE_CMDLINE
);
print
"Connecting to the '"
.
SOURCE_DB_NAME
.
"' source database on "
.
SOURCE_DB_TYPE
.
"...\n"
;
my
$source_db
=
Bugzilla::DB::
_connect
(
SOURCE_DB_TYPE
,
SOURCE_DB_HOST
,
...
...
importxml.pl
View file @
bfa4c5ae
...
...
@@ -92,10 +92,6 @@ use Getopt::Long;
use
Pod::
Usage
;
use
XML::
Twig
;
# We want to capture errors and handle them here rather than have the Template
# code barf all over the place.
Bugzilla
->
usage_mode
(
Bugzilla::Constants::
USAGE_MODE_CMDLINE
);
my
$debug
=
0
;
my
$mail
=
''
;
my
$attach_path
=
''
;
...
...
sanitycheck.pl
View file @
bfa4c5ae
...
...
@@ -42,8 +42,6 @@ my $result = GetOptions('verbose' => \$verbose,
pod2usage
({
-
verbose
=>
1
,
-
exitval
=>
1
})
if
$help
;
Bugzilla
->
usage_mode
(
USAGE_MODE_CMDLINE
);
# Be sure a login name if given.
$login
||
ThrowUserError
(
'invalid_username'
);
...
...
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