summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-01 13:24:29 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-01 13:24:29 -0400
commit77abf3c5599b1e4099f6ac633da978b469ae8827 (patch)
tree924251e927a44d5d475b2c63d79b5d2897e6178a /actions
parente5c412fb27173682e8286be22627bb6cb9697920 (diff)
add OpenID documentation
darcs-hash:20080701172429-84dde-94b70a726459e7309f179c18788f2a7de8d233f1.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/openidlogin.php13
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');