diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-03 10:11:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-03 10:11:35 +0000 |
commit | a8c30ed91ea00e24f809adc965b05f8292fbc236 (patch) | |
tree | 386db65fe5377df5373bf3e2a2b30bf1112a5fc7 /modules/statistics | |
parent | 3d951475eaebab990a78d07acdc344eb50239e18 (diff) | |
download | brdo-a8c30ed91ea00e24f809adc965b05f8292fbc236.tar.gz brdo-a8c30ed91ea00e24f809adc965b05f8292fbc236.tar.bz2 |
- Patch #449718 by alienbrain: node_feed() is now using new node building API.
Diffstat (limited to 'modules/statistics')
-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, + ); + } } /** |