throw ClientException instead of clientError

This commit is contained in:
Mikael Nordfeldth 2016-06-19 03:38:00 +02:00
parent 2726478467
commit 16f4583498
1 changed files with 1 additions and 1 deletions

View File

@ -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']) {