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();
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) {
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();
if (!common_logged_in()) {
common_user_error(_t('Not logged in.'));
return;
- }
- if ($this->arg('METHOD') == 'POST') {
+ } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handle_post();
} else {
$this->show_form();