From: Mikael Nordfeldth Date: Sun, 19 Jun 2016 01:38:00 +0000 (+0200) Subject: throw ClientException instead of clientError X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=16f45834980cffbd817c24c9f2c2fab207fe7903;p=quix0rs-gnu-social.git throw ClientException instead of clientError --- diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index 13f49f4eff..3b9472eeb8 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -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']) {