diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-04 11:03:15 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-04 11:03:15 +0000 |
commit | 8a636465767fc47f37a0768d45b86ca53a722085 (patch) | |
tree | 85d014902b87d9a695358fae16b64726b882b5f4 /includes/common.inc | |
parent | 7a6b8e3d3cc26d242b3c7cbb2eaf252d69b8192f (diff) | |
download | brdo-8a636465767fc47f37a0768d45b86ca53a722085.tar.gz brdo-8a636465767fc47f37a0768d45b86ca53a722085.tar.bz2 |
- Added an extra parameter to watchdog() which lets you specifiy an "action"
or "operation" link.
- Made the main page of the administration section show an overview of all
watchdog entries with such action link.
- Fixed typo in PostgreSQL database scheme.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc index db5bc4591..d9470bb3c 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -33,9 +33,9 @@ function error_handler($errno, $message, $filename, $line, $variables) { } } -function watchdog($type, $message) { +function watchdog($type, $message, $link = NULL) { global $user; - db_query("INSERT INTO watchdog (uid, type, message, location, hostname, timestamp) VALUES ('$user->uid', '%s', '%s', '%s', '%s', '%s')", $type, $message, request_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) { |