throw ClientException instead of clientError
This commit is contained in:
parent
2726478467
commit
16f4583498
@ -43,7 +43,7 @@ class SalmonAction extends Action
|
||||
|
||||
if (!isset($_SERVER['CONTENT_TYPE'])) {
|
||||
// TRANS: Client error. Do not translate "Content-type"
|
||||
$this->clientError(_m('Salmon requires a Content-type header.'));
|
||||
throw new ClientException(_m('Salmon requires a Content-type header.'));
|
||||
}
|
||||
$envxml = null;
|
||||
switch ($_SERVER['CONTENT_TYPE']) {
|
||||
|
Loading…
Reference in New Issue
Block a user