From 56de8727405ce4c08c38adec2f830d845e528190 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 17 Jun 2008 23:57:39 -0400 Subject: move instructions up to the "whats up" area darcs-hash:20080618035739-84dde-a562cffe186780d5f03cf53798ea249b2bda9fb1.gz --- actions/register.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'actions/register.php') 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'))); -- cgit v1.2.3-54-g00ecf