diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:57:39 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-17 23:57:39 -0400 |
commit | 56de8727405ce4c08c38adec2f830d845e528190 (patch) | |
tree | c5b39d06c642dc7098cc8d44b4d004b3b422667c /actions/register.php | |
parent | fddcfd75c53b8e08be5b71ca24c31b6982fea7ad (diff) |
move instructions up to the "whats up" area
darcs-hash:20080618035739-84dde-a562cffe186780d5f03cf53798ea249b2bda9fb1.gz
Diffstat (limited to 'actions/register.php')
-rw-r--r-- | actions/register.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/actions/register.php b/actions/register.php index d2c87f7bb..cad5c2ed7 100644 --- a/actions/register.php +++ b/actions/register.php @@ -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'))); |