summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-08 17:08:45 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-08 17:08:45 +0000
commitdba33bf190891d4902e5fa39784bb7a94ba81992 (patch)
tree9b6b09e725a0942cd5e54ee63b76e85d03be55a3 /modules
parenta6cb8d7adb6f0b3b2c32855821df403616c77065 (diff)
downloadbrdo-dba33bf190891d4902e5fa39784bb7a94ba81992.tar.gz
brdo-dba33bf190891d4902e5fa39784bb7a94ba81992.tar.bz2
#53174, track tab should not be visible when tracker is switched off., patch by Ber
Diffstat (limited to 'modules')
-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 1c79db602..47b42be8b 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -130,12 +130,12 @@ function statistics_menu($may_cache) {
'type' => MENU_CALLBACK);
}
else {
- if (arg(0) == 'user' && is_numeric(arg(1))) {
+ if (arg(0) == 'user' && is_numeric(arg(1)) && variable_get('statistics_enable_access_log', 0)) {
$items[] = array('path' => 'user/'. arg(1) .'/track/navigation', 'title' => t('track page visits'),
'callback' => 'statistics_user_tracker', 'access' => $access,
'type' => MENU_LOCAL_TASK, 'weight' => 2);
}
- if (arg(0) == 'node' && is_numeric(arg(1))) {
+ if (arg(0) == 'node' && is_numeric(arg(1)) && variable_get('statistics_enable_access_log', 0)) {
$items[] = array('path' => 'node/'. arg(1) .'/track', 'title' => t('track'),
'callback' => 'statistics_node_tracker', 'access' => $access,
'type' => MENU_LOCAL_TASK, 'weight' => 2);
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 1c79db602..47b42be8b 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -130,12 +130,12 @@ function statistics_menu($may_cache) {
'type' => MENU_CALLBACK);
}
else {
- if (arg(0) == 'user' && is_numeric(arg(1))) {
+ if (arg(0) == 'user' && is_numeric(arg(1)) && variable_get('statistics_enable_access_log', 0)) {
$items[] = array('path' => 'user/'. arg(1) .'/track/navigation', 'title' => t('track page visits'),
'callback' => 'statistics_user_tracker', 'access' => $access,
'type' => MENU_LOCAL_TASK, 'weight' => 2);
}
- if (arg(0) == 'node' && is_numeric(arg(1))) {
+ if (arg(0) == 'node' && is_numeric(arg(1)) && variable_get('statistics_enable_access_log', 0)) {
$items[] = array('path' => 'node/'. arg(1) .'/track', 'title' => t('track'),
'callback' => 'statistics_node_tracker', 'access' => $access,
'type' => MENU_LOCAL_TASK, 'weight' => 2);