summaryrefslogtreecommitdiff
path: root/actions/openidlogin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-18 15:02:02 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-18 15:02:02 -0400
commit03a08efce9bfe3be1673581594498b5d856d08b0 (patch)
tree70243c23f6aeeb691c291588ade2373a4a18ccec /actions/openidlogin.php
parentf341780e1ff56a02d3283a1fb380f4fa0ac34ae9 (diff)
move instructions to top in openid pages
darcs-hash:20080618190202-84dde-20cc79646144076090c36fe25d78f2d0e399d5ad.gz
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r--actions/openidlogin.php7
1 files changed, 5 insertions, 2 deletions
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',