broadcast profile and change subscription input id

darcs-hash:20080612184028-84dde-1f919ab373e5731efd403986ae760116769566d9.gz
This commit is contained in:
Evan Prodromou
2008-06-12 14:40:28 -04:00
parent aaf0786bef
commit c2a170da10
6 changed files with 225 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ class RemotesubscribeAction extends Action {
function show_form($err=NULL) {
$nickname = $this->trimmed('nickname');
$profile = $this->trimmed('profile');
$profile = $this->trimmed('profile_url');
common_show_header(_t('Remote subscribe'));
if ($err) {
common_element('div', 'error', $err);
@@ -50,7 +50,7 @@ class RemotesubscribeAction extends Action {
'action' => common_local_url('remotesubscribe')));
common_input('nickname', _t('User nickname'), $nickname,
_t('Nickname of the user you want to follow'));
common_input('profile', _t('Profile URL'), $profile,
common_input('profile_url', _t('Profile URL'), $profile,
_t('URL of your profile on another compatible microblogging service'));
common_submit('submit', _t('Subscribe'));
common_element_end('form');
@@ -65,7 +65,7 @@ class RemotesubscribeAction extends Action {
return;
}
$profile = $this->trimmed('profile');
$profile = $this->trimmed('profile_url');
if (!$profile) {
$this->show_form(_t('No such user!'));