From 2bb9902fc23e6bee049119e661ad488b76eaa874 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 15 Jan 2009 00:50:30 +0000 Subject: =?UTF-8?q?Bug=20473553:=20ERROR=5FMODE=5FDIE=20should=20be=20the?= =?UTF-8?q?=20default=20if=20the=20script=20is=20not=20CGI=20-=20Patch=20b?= =?UTF-8?q?y=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla.pm') 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 { -- cgit v1.2.1