]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
throw ClientException instead of clientError
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Jun 2016 01:38:00 +0000 (03:38 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 19 Jun 2016 01:38:00 +0000 (03:38 +0200)
plugins/OStatus/lib/salmonaction.php

index 13f49f4effa6fcfa4cacba5e7c1d58ba299e681a..3b9472eeb8addb3f619c325165bccdfc0c1c7322 100644 (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']) {