summaryrefslogtreecommitdiff
path: root/modules/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-14 20:20:09 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-14 20:20:09 +0000
commitef95773b1c6e3b2de1363e607d31f4e8808ec304 (patch)
treeacea17021fcb12bce0ff3e00b4af9000a79c6197 /modules/statistics.module
parent9998d2a14817b69251c1046b507c61eb3bacc750 (diff)
downloadbrdo-ef95773b1c6e3b2de1363e607d31f4e8808ec304.tar.gz
brdo-ef95773b1c6e3b2de1363e607d31f4e8808ec304.tar.bz2
- Modified patch by Jeremy: throttle module improvements and fixes:
+ throttle module: flush cache when the throttle enables/disables + throttle module: prevent throttle being enabled by 0 users or guests when disabled + system module: remove requirement for statistics.module + block module: update help text to reflect access log is no longer required + statistics module: throttle is now enabled/disabled, not using levels 0-5
Diffstat (limited to 'modules/statistics.module')
-rw-r--r--modules/statistics.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index c2645d434..0ad65b778 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -94,7 +94,7 @@ function statistics_exit() {
}
}
}
- if ((variable_get('statistics_enable_access_log', 0)) && (module_invoke('throttle', 'status') < 5)) {
+ if ((variable_get('statistics_enable_access_log', 0)) && (module_invoke('throttle', 'status') == 0)) {
// Statistical logs are enabled.
$referrer = referer_uri();
$hostname = $_SERVER['REMOTE_ADDR'];