]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show error messages in registration form
authorEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 17:07:52 +0000 (13:07 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 17:07:52 +0000 (13:07 -0400)
darcs-hash:20080528170752-84dde-86f5965c108fffe703e62bd42f6bd0eda22f1931.gz

actions/register.php

index cd04865067dfc93e0bf67b0fe2247bc02ce1cdde..d2e54b634596e8ecf3f5077910fafbba65c32d60 100644 (file)
@@ -117,8 +117,11 @@ class RegisterAction extends Action {
 
        function show_form($error=NULL) {
                global $config;
-               
+
                common_show_header(_t('Register'));
+               if ($error) {
+                       common_element('div', 'error', $error);
+               }
                common_element_start('form', array('method' => 'POST',
                                                                                   'id' => 'login',
                                                                                   'action' => common_local_url('register')));