From 16f45834980cffbd817c24c9f2c2fab207fe7903 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 19 Jun 2016 03:38:00 +0200 Subject: [PATCH] throw ClientException instead of clientError --- plugins/OStatus/lib/salmonaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) { -- 2.39.5