summaryrefslogtreecommitdiff
path: root/actions/openidlogin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
commiteaa81d25fa7bd954132ce7f901fae69b0d46ec1a (patch)
tree25ac22e73ca93935b2a27e1e91e485b04ec3e01d /actions/openidlogin.php
parent2b2fb276219f87cdc0430d91ac3695e098ae48f4 (diff)
Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
Diffstat (limited to 'actions/openidlogin.php')
-rw-r--r--actions/openidlogin.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/actions/openidlogin.php b/actions/openidlogin.php
index 09679e372..82791af34 100644
--- a/actions/openidlogin.php
+++ b/actions/openidlogin.php
@@ -66,13 +66,13 @@ class OpenidloginAction extends Action
function show_top($error=null)
{
if ($error) {
- common_element('div', array('class' => 'error'), $error);
+ $this->element('div', array('class' => 'error'), $error);
} else {
$instr = $this->get_instructions();
$output = common_markup_to_html($instr);
- common_element_start('div', 'instructions');
- common_raw($output);
- common_element_end('div');
+ $this->elementStart('div', 'instructions');
+ $this->raw($output);
+ $this->elementEnd('div');
}
}
@@ -80,18 +80,18 @@ class OpenidloginAction extends Action
{
common_show_header(_('OpenID Login'), null, $error, array($this, 'show_top'));
$formaction = common_local_url('openidlogin');
- common_element_start('form', array('method' => 'post',
+ $this->elementStart('form', array('method' => 'post',
'id' => 'openidlogin',
'action' => $formaction));
- common_hidden('token', common_session_token());
- common_input('openid_url', _('OpenID URL'),
+ $this->hidden('token', common_session_token());
+ $this->input('openid_url', _('OpenID URL'),
$openid_url,
_('Your OpenID URL'));
- common_checkbox('rememberme', _('Remember me'), false,
+ $this->checkbox('rememberme', _('Remember me'), false,
_('Automatically login in the future; ' .
'not for shared computers!'));
- common_submit('submit', _('Login'));
- common_element_end('form');
+ $this->submit('submit', _('Login'));
+ $this->elementEnd('form');
common_show_footer();
}
}