diff options
author | lpsolit%gmail.com <> | 2009-01-15 00:50:30 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2009-01-15 00:50:30 +0000 |
commit | 2bb9902fc23e6bee049119e661ad488b76eaa874 (patch) | |
tree | 41db25762f0c2978ec2861f6f262b9449034435f /Bugzilla.pm | |
parent | Bug 472224: Bugzilla.time function that returns detailed time and timezone in... (diff) | |
download | bugzilla-2bb9902fc23e6bee049119e661ad488b76eaa874.tar.gz bugzilla-2bb9902fc23e6bee049119e661ad488b76eaa874.tar.bz2 bugzilla-2bb9902fc23e6bee049119e661ad488b76eaa874.zip |
Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
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 12ae42bba..324b3cc14 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -357,7 +357,7 @@ sub error_mode { $class->request_cache->{error_mode} = $newval; } return $class->request_cache->{error_mode} - || Bugzilla::Constants::ERROR_MODE_WEBPAGE; + || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE); } sub usage_mode { |