summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/statistics.module4
-rw-r--r--modules/statistics/statistics.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 4e02f6fba..b46ae4c1a 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -84,7 +84,7 @@ function statistics_exit() {
* Implementation of hook_perm().
*/
function statistics_perm() {
- return array('access statistics', 'view node access counter');
+ return array('access statistics', 'view post access counter');
}
/**
@@ -94,7 +94,7 @@ function statistics_link($type, $node = 0, $main = 0) {
global $id;
$links = array();
- if ($type != 'comment' && user_access('view node access counter')) {
+ if ($type != 'comment' && user_access('view post access counter')) {
$statistics = statistics_get($node->nid);
if ($statistics) {
$links[] = format_plural($statistics['totalcount'], '1 read', '%count reads');
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 4e02f6fba..b46ae4c1a 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -84,7 +84,7 @@ function statistics_exit() {
* Implementation of hook_perm().
*/
function statistics_perm() {
- return array('access statistics', 'view node access counter');
+ return array('access statistics', 'view post access counter');
}
/**
@@ -94,7 +94,7 @@ function statistics_link($type, $node = 0, $main = 0) {
global $id;
$links = array();
- if ($type != 'comment' && user_access('view node access counter')) {
+ if ($type != 'comment' && user_access('view post access counter')) {
$statistics = statistics_get($node->nid);
if ($statistics) {
$links[] = format_plural($statistics['totalcount'], '1 read', '%count reads');