From 8d723826629106dc4d1cb4737857300632077d1a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 23 Jan 2005 15:32:32 +0000 Subject: - Patch #15962 by Goba: fixed the association between the accesslog data and the nodes. --- modules/statistics/statistics.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/statistics/statistics.module') diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index a334ee669..e33b56a45 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -74,10 +74,9 @@ function statistics_exit() { // Statistical logs are enabled. $referrer = referer_uri(); $hostname = $_SERVER['REMOTE_ADDR']; - $path = (drupal_get_path_alias($_GET['q'])) ? drupal_get_path_alias($_GET['q']) : $_GET['q']; // Log this page access. - db_query("INSERT INTO {accesslog} (title, path, url, hostname, uid, timestamp) values('%s', '%s', '%s', '%s', %d, %d)", drupal_get_title(), $path, $referrer, $hostname, $user->uid, time()); + db_query("INSERT INTO {accesslog} (title, path, url, hostname, uid, timestamp) values('%s', '%s', '%s', '%s', %d, %d)", drupal_get_title(), $_GET['q'], $referrer, $hostname, $user->uid, time()); } } -- cgit v1.2.3