From e577e883f4407b3dbd6c2631273b8014153504a0 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 6 Jan 2016 00:57:31 +0100 Subject: [PATCH] Subscriber lists to separate files and also Profile typing --- lib/profileaction.php | 20 -------------------- lib/subscribersminilist.php | 11 +++++++++++ lib/subscribersminilistitem.php | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 20 deletions(-) create mode 100644 lib/subscribersminilist.php create mode 100644 lib/subscribersminilistitem.php diff --git a/lib/profileaction.php b/lib/profileaction.php index bdcd575b6b..22c960406a 100644 --- a/lib/profileaction.php +++ b/lib/profileaction.php @@ -336,23 +336,3 @@ abstract class ProfileAction extends ManagedAction } } } - -class SubscribersMiniList extends ProfileMiniList -{ - function newListItem($profile) - { - return new SubscribersMiniListItem($profile, $this->action); - } -} - -class SubscribersMiniListItem extends ProfileMiniListItem -{ - function linkAttributes() - { - $aAttrs = parent::linkAttributes(); - if (common_config('nofollow', 'subscribers')) { - $aAttrs['rel'] .= ' nofollow'; - } - return $aAttrs; - } -} diff --git a/lib/subscribersminilist.php b/lib/subscribersminilist.php new file mode 100644 index 0000000000..79188330a1 --- /dev/null +++ b/lib/subscribersminilist.php @@ -0,0 +1,11 @@ +action); + } +} diff --git a/lib/subscribersminilistitem.php b/lib/subscribersminilistitem.php new file mode 100644 index 0000000000..3cd618e55b --- /dev/null +++ b/lib/subscribersminilistitem.php @@ -0,0 +1,15 @@ +