From 03a08efce9bfe3be1673581594498b5d856d08b0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 15:02:02 -0400 Subject: move instructions to top in openid pages darcs-hash:20080618190202-84dde-20cc79646144076090c36fe25d78f2d0e399d5ad.gz --- actions/openidlogin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'actions/openidlogin.php') diff --git a/actions/openidlogin.php b/actions/openidlogin.php index 6ce4bb191..ecc4e6bff 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -38,14 +38,17 @@ class OpenidloginAction extends Action { } } - function show_form($error=NULL) { - common_show_header(_t('OpenID Login')); + function show_top($error=NULL) { if ($error) { common_element('div', array('class' => 'error'), $error); } else { common_element('div', 'instructions', _t('Login with an OpenID account.')); } + } + + function show_form($error=NULL) { + common_show_header(_t('OpenID Login'), NULL, $error, array($this, 'show_top')); $formaction = common_local_url('openidlogin'); common_element_start('form', array('method' => 'POST', 'id' => 'openidlogin', -- cgit v1.2.3-54-g00ecf