diff options
author | Brion Vibber <brion@pobox.com> | 2010-04-05 10:42:41 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-04-05 10:42:41 -0700 |
commit | b71f276ed5420bc17262fe7981617ce6e27839c4 (patch) | |
tree | 104c6fe37665d434635e3970c151aca52612efc7 /actions/subscribers.php | |
parent | f2b60b78b6096447a8aadc3d5075bb916f89880a (diff) | |
parent | 2a489018b11838280ef0c74f6727d5b9c0c10a0f (diff) |
Merge branch 'master' into testing
Diffstat (limited to 'actions/subscribers.php')
-rw-r--r-- | actions/subscribers.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/subscribers.php b/actions/subscribers.php index 4bced6284..6dda7312d 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -163,4 +163,22 @@ class SubscribersListItem extends SubscriptionListItem $bf->show(); } } + + function linkAttributes() + { + $aAttrs = parent::linkAttributes(); + + if (common_config('nofollow', 'subscribers')) { + $aAttrs['rel'] .= ' nofollow'; + } + + return $aAttrs; + } + + function homepageAttributes() + { + if (common_config('nofollow', 'subscribers')) { + $aAttrs['rel'] = 'nofollow'; + } + } } |