diff options
author | Evan Prodromou <evan@status.net> | 2010-10-24 15:04:12 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-10-24 15:04:12 -0400 |
commit | 69a1ecec9b4b7168fb570d2d07bcfaa0f29fc856 (patch) | |
tree | 74e0e538ddebad323fca991414d10378a166f7a8 /lib/action.php | |
parent | 1545c1228bbbafff6a97c44a6bdcef65bd8360c2 (diff) |
check for a post
Diffstat (limited to 'lib/action.php')
-rw-r--r-- | lib/action.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php index 01bb0f7e9..d8f139246 100644 --- a/lib/action.php +++ b/lib/action.php @@ -1354,4 +1354,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'); + } } |