]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/atompubshowfavorite.php
More Activity-based reasoning for saveActivity in Notice
[quix0rs-gnu-social.git] / plugins / Favorite / actions / atompubshowfavorite.php
index 436e88e6939e548f3e7b9ce0dd1a00bfc4b48279..c71f1a11b33b19162510d8820eb536f5501af269 100644 (file)
@@ -103,17 +103,16 @@ class AtompubshowfavoriteAction extends ApiAuthAction
         parent::handle($argarray);
 
         switch ($_SERVER['REQUEST_METHOD']) {
-        case GET:
-        case HEAD:
+        case 'GET':
+        case 'HEAD':
             $this->showFave();
             break;
-        case DELETE:
+        case 'DELETE':
             $this->deleteFave();
             break;
         default:
             // TRANS: Client exception thrown using an unsupported HTTP method.
-            throw new ClientException(_('HTTP method not supported.'),
-                                      405);
+            throw new ClientException(_('HTTP method not supported.'), 405);
         }
         return true;
     }