summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-01-15 01:50:30 +0100
committerlpsolit%gmail.com <>2009-01-15 01:50:30 +0100
commit2bb9902fc23e6bee049119e661ad488b76eaa874 (patch)
tree41db25762f0c2978ec2861f6f262b9449034435f
parent97b69fa2f0a0213bfddfc5540fedf2e4da63c8d2 (diff)
downloadbugzilla-2bb9902fc23e6bee049119e661ad488b76eaa874.tar.gz
bugzilla-2bb9902fc23e6bee049119e661ad488b76eaa874.tar.xz
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
-rw-r--r--Bugzilla.pm2
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 {