diff options
Diffstat (limited to 'modules/statistics.module')
-rw-r--r-- | modules/statistics.module | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index f227baabf..b5ca7a9a5 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -812,8 +812,12 @@ function statistics_get($nid) { /* Block hook */ function statistics_block($op = "list", $delta = 0) { if ($op == "list") { - $blocks[0]["info"] = t("Top nodes"); - $blocks[1]["info"] = t("Who's online"); + if (variable_get("statistics_enable_node_counter", 0)) { + $blocks[0]["info"] = t("Top nodes"); + } + if (variable_get("statistics_enable_access_log", 0)) { + $blocks[1]["info"] = t("Who's online"); + } return $blocks; } else { |