summaryrefslogtreecommitdiff
path: root/modules/statistics
diff options
context:
space:
mode:
Diffstat (limited to 'modules/statistics')
-rw-r--r--modules/statistics/statistics.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index b46ae4c1a..17ade1d63 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -62,6 +62,8 @@ function statistics_help($section) {
function statistics_exit() {
global $user, $recent_activity;
+ drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
+
if (variable_get('statistics_count_content_views', 0)) {
// We are counting content views.
if ((arg(0) == 'node') && is_numeric(arg(1)) && arg(2) == '') {