]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
Merge branch 'atompub' into 0.9.x
[quix0rs-gnu-social.git] / lib / action.php
index 427b85427bd2549f6e64daf24727eaabada498e2..17d3e2311aa9a81f945572a638c48ad0b603ad23 100644 (file)
@@ -1404,4 +1404,15 @@ class Action extends HTMLOutputter // lawsuit
             $this->clientError(_('There was a problem with your session token.'));
         }
     }
+
+    /**
+     * Check if the current request is a POST
+     *
+     * @return boolean true if POST; otherwise false.
+     */
+
+    function isPost()
+    {
+        return ($_SERVER['REQUEST_METHOD'] == 'POST');
+    }
 }