}
}
}
-
-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;
- }
-}
--- /dev/null
+<?php
+
+if (!defined('GNUSOCIAL')) { exit(1); }
+
+class SubscribersMiniList extends ProfileMiniList
+{
+ public function newListItem(Profile $profile)
+ {
+ return new SubscribersMiniListItem($profile, $this->action);
+ }
+}
--- /dev/null
+<?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;
+ }
+}