X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsubscribers.php;h=31d0468d9018d669d34082b8f0ee32642bd110c9;hb=bc15d027a804e60e76bdaf6fd47e69d41b395e7e;hp=b9ca92af39915001bb792aaa4514d5fd90d31be7;hpb=edbc0c665cc65875b4d14b79939233b1c9c06bb6;p=quix0rs-gnu-social.git diff --git a/actions/subscribers.php b/actions/subscribers.php index b9ca92af39..31d0468d90 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -21,13 +21,16 @@ if (!defined('LACONICA')) { exit(1); } require_once(INSTALLDIR.'/lib/gallery.php'); -class SubscribersAction extends GalleryAction { +class SubscribersAction extends GalleryAction +{ - function gallery_type() { + function gallery_type() + { return _('Subscribers'); } - function get_instructions(&$profile) { + function get_instructions(&$profile) + { $user =& common_current_user(); if ($user && ($user->id == $profile->id)) { return _('These are the people who listen to your notices.'); @@ -36,25 +39,31 @@ class SubscribersAction extends GalleryAction { } } - function fields() { + function fields() + { return array('subscriber', 'subscribed'); } - function div_class() { + function div_class() + { return 'subscribers'; } - function get_other(&$subs) { + function get_other(&$subs) + { return $subs->subscriber; } - function profile_list_class() { + function profile_list_class() + { return 'SubscribersList'; } } -class SubscribersList extends ProfileList { - function show_owner_controls($profile) { +class SubscribersList extends ProfileList +{ + function show_owner_controls($profile) + { common_block_form($profile, array('action' => 'subscribers', 'nickname' => $this->owner->nickname)); }