Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8784a7d1
Commit
8784a7d1
authored
Nov 27, 2005
by
Dries Buytaert
Browse files
- Patch
#39024
by Zen: comments that should be in the moderation queue get published.
parent
c647b39c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
8784a7d1
...
...
@@ -704,7 +704,7 @@ function comment_save($edit) {
$edit
[
'name'
]
=
$user
->
name
;
}
db_query
(
"INSERT INTO
{
comments
}
(cid, nid, pid, uid, subject, comment, format, hostname, timestamp, status, score, users, thread, name, mail, homepage) VALUES (%d, %d, %d, %d, '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s')"
,
$edit
[
'cid'
],
$edit
[
'nid'
],
$edit
[
'pid'
],
$edit
[
'uid'
],
$edit
[
'subject'
],
$edit
[
'comment'
],
$edit
[
'format'
],
$_SERVER
[
'REMOTE_ADDR'
],
$edit
[
'timestamp'
],
$
edit
[
'
status
'
]
,
$score
,
$users
,
$thread
,
$edit
[
'name'
],
$edit
[
'mail'
],
$edit
[
'homepage'
]);
db_query
(
"INSERT INTO
{
comments
}
(cid, nid, pid, uid, subject, comment, format, hostname, timestamp, status, score, users, thread, name, mail, homepage) VALUES (%d, %d, %d, %d, '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s')"
,
$edit
[
'cid'
],
$edit
[
'nid'
],
$edit
[
'pid'
],
$edit
[
'uid'
],
$edit
[
'subject'
],
$edit
[
'comment'
],
$edit
[
'format'
],
$_SERVER
[
'REMOTE_ADDR'
],
$edit
[
'timestamp'
],
$status
,
$score
,
$users
,
$thread
,
$edit
[
'name'
],
$edit
[
'mail'
],
$edit
[
'homepage'
]);
_comment_update_node_statistics
(
$edit
[
'nid'
]);
...
...
modules/comment/comment.module
View file @
8784a7d1
...
...
@@ -704,7 +704,7 @@ function comment_save($edit) {
$edit
[
'name'
]
=
$user
->
name
;
}
db_query
(
"INSERT INTO
{
comments
}
(cid, nid, pid, uid, subject, comment, format, hostname, timestamp, status, score, users, thread, name, mail, homepage) VALUES (%d, %d, %d, %d, '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s')"
,
$edit
[
'cid'
],
$edit
[
'nid'
],
$edit
[
'pid'
],
$edit
[
'uid'
],
$edit
[
'subject'
],
$edit
[
'comment'
],
$edit
[
'format'
],
$_SERVER
[
'REMOTE_ADDR'
],
$edit
[
'timestamp'
],
$
edit
[
'
status
'
]
,
$score
,
$users
,
$thread
,
$edit
[
'name'
],
$edit
[
'mail'
],
$edit
[
'homepage'
]);
db_query
(
"INSERT INTO
{
comments
}
(cid, nid, pid, uid, subject, comment, format, hostname, timestamp, status, score, users, thread, name, mail, homepage) VALUES (%d, %d, %d, %d, '%s', '%s', %d, '%s', %d, %d, %d, '%s', '%s', '%s', '%s', '%s')"
,
$edit
[
'cid'
],
$edit
[
'nid'
],
$edit
[
'pid'
],
$edit
[
'uid'
],
$edit
[
'subject'
],
$edit
[
'comment'
],
$edit
[
'format'
],
$_SERVER
[
'REMOTE_ADDR'
],
$edit
[
'timestamp'
],
$status
,
$score
,
$users
,
$thread
,
$edit
[
'name'
],
$edit
[
'mail'
],
$edit
[
'homepage'
]);
_comment_update_node_statistics
(
$edit
[
'nid'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment