summaryrefslogtreecommitdiff
path: root/modules/statistics/statistics.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-23 15:32:32 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-23 15:32:32 +0000
commit8d723826629106dc4d1cb4737857300632077d1a (patch)
tree9efe2da2ab23f2325695b6c8ad23edf6eb09fc9f /modules/statistics/statistics.module
parenta3322283266d2115d082720d97fed29835bc25d0 (diff)
downloadbrdo-8d723826629106dc4d1cb4737857300632077d1a.tar.gz
brdo-8d723826629106dc4d1cb4737857300632077d1a.tar.bz2
- Patch #15962 by Goba: fixed the association between the accesslog data and the nodes.
Diffstat (limited to 'modules/statistics/statistics.module')
-rw-r--r--modules/statistics/statistics.module3
1 files changed, 1 insertions, 2 deletions
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());
}
}