From: Evan Prodromou Date: Thu, 14 Apr 2011 21:03:23 +0000 (-0400) Subject: hide searchsub from stats X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e5e486dc80ff10381bf6b4628c5e3441b892dfc;p=quix0rs-gnu-social.git hide searchsub from stats --- diff --git a/plugins/SearchSub/SearchSubPlugin.php b/plugins/SearchSub/SearchSubPlugin.php index 785c8fe006..de131c2b04 100644 --- a/plugins/SearchSub/SearchSubPlugin.php +++ b/plugins/SearchSub/SearchSubPlugin.php @@ -242,39 +242,6 @@ class SearchSubPlugin extends Plugin return true; } - /** - * Add a count of mirrored feeds into a user's profile sidebar stats. - * - * @param Profile $profile - * @param array $stats - * @return boolean hook return value - */ - function onProfileStats($profile, &$stats) - { - $cur = common_current_user(); - if (!empty($cur) && $cur->id == $profile->id) { - $searchsub = new SearchSub(); - $searchsub ->profile_id = $profile->id; - $entry = array( - 'id' => 'searchsubs', - 'label' => _m('Search subscriptions'), - 'link' => common_local_url('searchsubs', array('nickname' => $profile->nickname)), - 'value' => $searchsub->count(), - ); - - $insertAt = count($stats); - foreach ($stats as $i => $row) { - if ($row['id'] == 'groups') { - // Slip us in after them. - $insertAt = $i + 1; - break; - } - } - array_splice($stats, $insertAt, 0, array($entry)); - } - return true; - } - /** * Replace the built-in stub track commands with ones that control * search subscriptions.