From a380356d6eb8cc7b8d749ec6f243feb22d1b8357 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Jan 2003 20:58:31 +0000 Subject: - Fixed typo in watchdog(). Reported by Marco. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index b22238693..4a3602d19 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -37,7 +37,7 @@ function error_handler($errno, $message, $filename, $line, $variables) { function watchdog($type, $message, $link = NULL) { global $user; - db_query("INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES ('$user->uid', '%s', '%s', '%s', '%s', '%s', '%s')", $type, $message, $link, $uri, getenv("REMOTE_ADDR"), time()); + db_query("INSERT INTO watchdog (uid, type, message, link, location, hostname, timestamp) VALUES ('$user->uid', '%s', '%s', '%s', '%s', '%s', '%s')", $type, $message, $link, request_uri(), getenv("REMOTE_ADDR"), time()); } function throttle($type, $rate) { -- cgit v1.2.3