diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-10 19:41:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-10 19:41:57 +0000 |
commit | 6c99c2d86f305b61bd3dce90416d733c63a774f4 (patch) | |
tree | cc12941bfe009395a396b9954671f38964bab1df /modules/comment/comment.module | |
parent | 38e89dd03f0d5337edac9c531e2d03355bc85c5a (diff) | |
download | brdo-6c99c2d86f305b61bd3dce90416d733c63a774f4.tar.gz brdo-6c99c2d86f305b61bd3dce90416d733c63a774f4.tar.bz2 |
- Patch #5766 by Moshe: replace getenv() with $_SERVER.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 9dfee0ef1..702c6c368 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -435,7 +435,7 @@ function comment_post($edit) { $edit["cid"] = db_next_id("{comments}_cid"); - db_query("INSERT INTO {comments} (cid, nid, pid, uid, subject, comment, hostname, timestamp, status, score, users, thread) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', %d, %d, %d, '%s', '%s')", $edit["cid"], $edit["nid"], $edit["pid"], $user->uid, $edit["subject"], $edit["comment"], getenv("REMOTE_ADDR"), time(), $status, $score, $users, $thread); + db_query("INSERT INTO {comments} (cid, nid, pid, uid, subject, comment, hostname, timestamp, status, score, users, thread) VALUES (%d, %d, %d, %d, '%s', '%s', '%s', %d, %d, %d, '%s', '%s')", $edit["cid"], $edit["nid"], $edit["pid"], $user->uid, $edit["subject"], $edit["comment"], $_SERVER['REMOTE_ADDR'], time(), $status, $score, $users, $thread); /* ** Tell the other modules a new comment has been submitted: |