Skip to content
Snippets Groups Projects
Commit cb93c617 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 'node' -> 'post'

parent ee77417f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment