- Fixed typo in watchdog(). Reported by Marco.
parent
bfb3575c09
commit
a380356d6e
|
@ -37,7 +37,7 @@ function error_handler($errno, $message, $filename, $line, $variables) {
|
||||||
|
|
||||||
function watchdog($type, $message, $link = NULL) {
|
function watchdog($type, $message, $link = NULL) {
|
||||||
global $user;
|
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) {
|
function throttle($type, $rate) {
|
||||||
|
|
Loading…
Reference in New Issue