From ef95773b1c6e3b2de1363e607d31f4e8808ec304 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 14 Nov 2004 20:20:09 +0000 Subject: - 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 --- modules/statistics/statistics.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index c2645d434..0ad65b778 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/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']; -- cgit v1.2.3