diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/login.php | 2 | ||||
-rw-r--r-- | actions/newnotice.php | 2 | ||||
-rw-r--r-- | actions/register.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/actions/login.php b/actions/login.php index 13e14f5be..4795dfdbd 100644 --- a/actions/login.php +++ b/actions/login.php @@ -25,7 +25,7 @@ class LoginAction extends Action { parent::handle($args); if (common_logged_in()) { common_user_error(_t('Already logged in.')); - } else if ($this->arg('METHOD') == 'POST') { + } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->check_login(); } else { $this->show_form(); diff --git a/actions/newnotice.php b/actions/newnotice.php index 9fc910318..e20932b55 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -27,7 +27,7 @@ class NewnoticeAction extends Action { if (!common_logged_in()) { common_user_error(_t('Not logged in.')); - } else if ($this->arg('METHOD') == 'POST') { + } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $id = $this->save_new_notice(); if ($id) { diff --git a/actions/register.php b/actions/register.php index 908ae80cd..d3358cb92 100644 --- a/actions/register.php +++ b/actions/register.php @@ -26,7 +26,7 @@ class RegisterAction extends Action { if (common_logged_in()) { common_user_error(_t('Already logged in.')); - } else if ($this->arg('METHOD') == 'POST') { + } else if ($_SERVER['REQUEST_METHOD'] == 'POST') { $this->try_register(); } else { $this->show_form(); |