From fe72ab1c225607a27cabaa1fd4667368917a58f1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 16 Jan 2003 22:27:01 +0000 Subject: [PATCH] - Bugfix: statistics.module can't give referrer statistics other than the external ones with clean URLs. Patch by Ulf Rompe. --- modules/statistics.module | 4 ++++ modules/statistics/statistics.module | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/modules/statistics.module b/modules/statistics.module index 0635868bad0..ccb854ffd2b 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -399,6 +399,10 @@ function statistics_admin_accesslog_table($type, $id) { function statistics_recent_refer($nid = 0) { global $HTTP_HOST, $view; + if (empty($view)) { + $view = arg(3); + } + $node = node_load(array("nid" => $nid)); if ($nid > 0) { diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 0635868bad0..ccb854ffd2b 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -399,6 +399,10 @@ function statistics_admin_accesslog_table($type, $id) { function statistics_recent_refer($nid = 0) { global $HTTP_HOST, $view; + if (empty($view)) { + $view = arg(3); + } + $node = node_load(array("nid" => $nid)); if ($nid > 0) {