diff options
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r-- | modules/statistics/statistics.module | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index f2a5a24de..ad876b97b 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -104,20 +104,20 @@ function statistics_perm() { * Implementation of hook_node_view(). */ function statistics_node_view($node, $teaser) { - global $id; - $links = array(); - - if (user_access('view post access counter')) { - $statistics = statistics_get($node->nid); - if ($statistics) { - $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + if ($node->build_mode != NODE_BUILD_RSS) { + $links = array(); + if (user_access('view post access counter')) { + $statistics = statistics_get($node->nid); + if ($statistics) { + $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '@count reads'); + } } - } - $node->content['links']['statistics'] = array( - '#type' => 'node_links', - '#value' => $links, - ); + $node->content['links']['statistics'] = array( + '#type' => 'node_links', + '#value' => $links, + ); + } } /** |