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 /modules/comment.module | |
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 'modules/comment.module')
-rw-r--r-- | modules/comment.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment.module b/modules/comment.module index b4f1971ec..8ac83dde8 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -201,7 +201,7 @@ function comment_post($edit) { */ $edit["subject"] = strip_tags($edit["subject"]); - + if ($edit["subject"] == "") { $edit["subject"] = substr(strip_tags($edit["comment"]), 0, 29); } @@ -249,7 +249,7 @@ function comment_post($edit) { ** Add entry to the watchdog log: */ - watchdog("special", "comment: updated '". $edit["subject"] ."'"); + watchdog("special", "comment: updated '". $edit["subject"] ."'", l(t("view comment"), array("id" => $edit["nid"], "cid" => $edit["cid"]))); } else { /* @@ -282,7 +282,7 @@ function comment_post($edit) { ** Add entry to the watchdog log: */ - watchdog("special", "comment: added '". $edit["subject"] ."'"); + watchdog("special", "comment: added '". $edit["subject"] ."'", l(t("view comment"), array("id" => $edit["nid"], "cid" => $edit["cid"]))); } /* |