]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/register.php
add stub email canonicalizer
[quix0rs-gnu-social.git] / actions / register.php
index b8233784ddae9c3c5f67fa0d0b10a22527edea7c..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();
@@ -98,7 +98,7 @@ class RegisterAction extends Action {
        
        function show_form($error=NULL) {
                
-               common_show_header(_t('Login'));
+               common_show_header(_t('Register'));
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url('register')));
@@ -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');
        }
 }