summaryrefslogtreecommitdiff
path: root/actions/remotesubscribe.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/remotesubscribe.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/remotesubscribe.php')
-rw-r--r--actions/remotesubscribe.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/actions/remotesubscribe.php b/actions/remotesubscribe.php
index a9494772e..b9e29d645 100644
--- a/actions/remotesubscribe.php
+++ b/actions/remotesubscribe.php
@@ -61,13 +61,13 @@ class RemotesubscribeAction extends Action
function show_top($err=null)
{
if ($err) {
- common_element('div', 'error', $err);
+ $this->element('div', 'error', $err);
} else {
$instructions = $this->get_instructions();
$output = common_markup_to_html($instructions);
- common_element_start('div', 'instructions');
- common_raw($output);
- common_element_end('p');
+ $this->elementStart('div', 'instructions');
+ $this->raw($output);
+ $this->elementEnd('p');
}
}
@@ -79,15 +79,15 @@ class RemotesubscribeAction extends Action
array($this, 'show_top'));
# id = remotesubscribe conflicts with the
# button on profile page
- common_element_start('form', array('id' => 'remsub', 'method' => 'post',
+ $this->elementStart('form', array('id' => 'remsub', 'method' => 'post',
'action' => common_local_url('remotesubscribe')));
- common_hidden('token', common_session_token());
- common_input('nickname', _('User nickname'), $nickname,
+ $this->hidden('token', common_session_token());
+ $this->input('nickname', _('User nickname'), $nickname,
_('Nickname of the user you want to follow'));
- common_input('profile_url', _('Profile URL'), $profile,
+ $this->input('profile_url', _('Profile URL'), $profile,
_('URL of your profile on another compatible microblogging service'));
- common_submit('submit', _('Subscribe'));
- common_element_end('form');
+ $this->submit('submit', _('Subscribe'));
+ $this->elementEnd('form');
common_show_footer();
}