diff options
author | mkanat%bugzilla.org <> | 2008-12-16 21:16:25 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-12-16 21:16:25 +0000 |
commit | bfa4c5aede92951fa43d3bee1b15b9773e3d20f2 (patch) | |
tree | 6c5784a55dcf5b074192219fad94581fd35fa702 /Bugzilla.pm | |
parent | Bug 469793: [MySQL] In MySQL 5, columns sometimes had defaults that have no d... (diff) | |
download | bugzilla-bfa4c5aede92951fa43d3bee1b15b9773e3d20f2.tar.gz bugzilla-bfa4c5aede92951fa43d3bee1b15b9773e3d20f2.tar.bz2 bugzilla-bfa4c5aede92951fa43d3bee1b15b9773e3d20f2.zip |
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
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index e80f184ed..354d05148 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -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 { |