]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/register.php
add stub email canonicalizer
[quix0rs-gnu-social.git] / actions / register.php
index af5a8ca2ddacd86a539fb46031f47aebb78332a9..d3358cb9244086f5d0dd4281ef86b6c79cb616c1 100644 (file)
@@ -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();
@@ -124,12 +124,12 @@ class RegisterAction extends Action {
                                                                          'id' => 'email'));
                common_element('input', array('name' => 'submit',
                                                                          'type' => 'submit',
-                                                                         'id' => 'submit'),
-                                          _t('Login'));
+                                                                         'id' => 'submit',
+                                                                         'value' => _t('Login')));
                common_element('input', array('name' => 'cancel',
                                                                          'type' => 'button',
-                                                                         'id' => 'cancel'),
-                                          _t('Cancel'));
+                                                                         'id' => 'cancel',
+                                                                         'value' => _t('Cancel')));
                common_element_end('form');
        }
 }