X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscriptions.php;h=7a87a144f7640ef8b8a8a5870bb6d0c125e2fa77;hb=cadad553793844e7ef56bab164b1a5866d8d16e7;hp=ad4a3f9e517dcd4d267eadc21c7194291bfb9eaa;hpb=04ef1ba8eee7a9e2a565d7b4b747ef607665d562;p=quix0rs-gnu-social.git diff --git a/actions/subscriptions.php b/actions/subscriptions.php index ad4a3f9e51..7a87a144f7 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -21,7 +21,8 @@ if (!defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/lib/gallery.php'); -class SubscriptionsAction extends GalleryAction { +class SubscriptionsAction extends GalleryAction +{ function gallery_type() { @@ -59,7 +60,8 @@ class SubscriptionsAction extends GalleryAction { } } -class SubscriptionsList extends ProfileList { +class SubscriptionsList extends ProfileList +{ function show_owner_controls($profile) { @@ -70,16 +72,16 @@ class SubscriptionsList extends ProfileList { return; } - common_element_start('form', array('id' => 'subedit-' . $profile->id, + $this->elementStart('form', array('id' => 'subedit-' . $profile->id, 'method' => 'post', 'class' => 'subedit', 'action' => common_local_url('subedit'))); - common_hidden('token', common_session_token()); - common_hidden('profile', $profile->id); - common_checkbox('jabber', _('Jabber'), $sub->jabber); - common_checkbox('sms', _('SMS'), $sub->sms); - common_submit('save', _('Save')); - common_element_end('form'); + $this->hidden('token', common_session_token()); + $this->hidden('profile', $profile->id); + $this->checkbox('jabber', _('Jabber'), $sub->jabber); + $this->checkbox('sms', _('SMS'), $sub->sms); + $this->submit('save', _('Save')); + $this->elementEnd('form'); return; } }