Commit cb93c617 authored by Dries's avatar Dries
Browse files

- 'node' -> 'post'

parent ee77417f
......@@ -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');
......
......@@ -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');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment