Commit 2bb9902f authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI -…

Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent 97b69fa2
...@@ -357,7 +357,7 @@ sub error_mode { ...@@ -357,7 +357,7 @@ sub error_mode {
$class->request_cache->{error_mode} = $newval; $class->request_cache->{error_mode} = $newval;
} }
return $class->request_cache->{error_mode} return $class->request_cache->{error_mode}
|| Bugzilla::Constants::ERROR_MODE_WEBPAGE; || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE);
} }
sub usage_mode { sub usage_mode {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment