diff options
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r-- | actions/openidlogin.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/actions/openidlogin.php b/actions/openidlogin.php index f00c17181..5ec17ec46 100644 --- a/actions/openidlogin.php +++ b/actions/openidlogin.php @@ -40,15 +40,22 @@ class OpenidloginAction extends Action { } } + function get_instructions() { + return _t('Login with an [OpenID](%%doc.openid%%) account.'); + } + 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.')); + $instr = $this->get_instructions(); + $output = common_markup_to_html($instr); + common_element_start('div', 'instructions'); + common_raw($output); + common_element_end('div'); } } - + function show_form($error=NULL, $openid_url) { common_show_header(_t('OpenID Login'), NULL, $error, array($this, 'show_top')); $formaction = common_local_url('openidlogin'); |