]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Subscriber lists to separate files and also Profile typing
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 5 Jan 2016 23:57:31 +0000 (00:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 5 Jan 2016 23:57:31 +0000 (00:57 +0100)
lib/profileaction.php
lib/subscribersminilist.php [new file with mode: 0644]
lib/subscribersminilistitem.php [new file with mode: 0644]

index bdcd575b6b6b946cb5fa2ce2390960b4b60cd0f9..22c960406a49d1fec4c31be0cd7c4e925759eb4d 100644 (file)
@@ -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 (file)
index 0000000..7918833
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class SubscribersMiniList extends ProfileMiniList
+{
+    public function newListItem(Profile $profile)
+    {
+        return new SubscribersMiniListItem($profile, $this->action);
+    }
+}
diff --git a/lib/subscribersminilistitem.php b/lib/subscribersminilistitem.php
new file mode 100644 (file)
index 0000000..3cd618e
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class SubscribersMiniListItem extends ProfileMiniListItem
+{
+    function linkAttributes()
+    {
+        $aAttrs = parent::linkAttributes();
+        if (common_config('nofollow', 'subscribers')) {
+            $aAttrs['rel'] .= ' nofollow';
+        }
+        return $aAttrs;
+    }
+}