]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/register.php
do some commits
[quix0rs-gnu-social.git] / actions / register.php
index d2c87f7bb33ff77196bc2d377105d401ab766bf9..cad5c2ed708745df0f4daa2c65659fc73966e773 100644 (file)
@@ -115,16 +115,19 @@ class RegisterAction extends Action {
                return $result;
        }
 
-       function show_form($error=NULL) {
-               global $config;
-
-               common_show_header(_t('Register'));
+       function show_top($error=NULL) {
                if ($error) {
-                       common_element('div', 'error', $error);
+                       common_element('p', 'error', $error);
                } else {
-                       common_element('div', 'instructions', 
-                                                  _t('You can create a new account to start posting notices. '));
+                       common_element('p', 'instructions', 
+                                                  _t('You can create a new account to start posting notices.'));
                }
+       }
+       
+       function show_form($error=NULL) {
+               global $config;
+
+               common_show_header(_t('Register'), NULL, $error, array($this, 'show_top'));
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url('register')));