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
git-svn-id: svn://10.0.0.236/trunk@255815 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4d1ce87c1b
commit
f796b54e26
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user