diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-16 22:27:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-16 22:27:01 +0000 |
commit | fe72ab1c225607a27cabaa1fd4667368917a58f1 (patch) | |
tree | 07989b9a4450061107155fc4221ac1085e138333 | |
parent | 8fa32017624ffd0fd570975da371a517480ec692 (diff) | |
download | brdo-fe72ab1c225607a27cabaa1fd4667368917a58f1.tar.gz brdo-fe72ab1c225607a27cabaa1fd4667368917a58f1.tar.bz2 |
- Bugfix: statistics.module can't give referrer statistics other than the
external ones with clean URLs. Patch by Ulf Rompe.
-rw-r--r-- | modules/statistics.module | 4 | ||||
-rw-r--r-- | modules/statistics/statistics.module | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/statistics.module b/modules/statistics.module index 0635868ba..ccb854ffd 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 0635868ba..ccb854ffd 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) { |