Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
df6fe902
Commit
df6fe902
authored
Jan 09, 2005
by
Dries
Browse files
- Updated two watchdog calls.
parent
e92ed713
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
df6fe902
...
...
@@ -534,8 +534,8 @@ function comment_post($edit) {
// Allow modules to respond to the updating of a comment.
module_invoke_all
(
'comment'
,
'update'
,
$edit
);
// Add entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
// Add
an
entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
}
else
{
// Add the comment to database.
...
...
@@ -638,7 +638,7 @@ function comment_post($edit) {
module_invoke_all
(
'comment'
,
'insert'
,
$edit
);
// Add an entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: added %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
watchdog
(
'content'
,
t
(
'Comment: added %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
}
// Clear the cache so an anonymous user can see his comment being added.
...
...
modules/comment/comment.module
View file @
df6fe902
...
...
@@ -534,8 +534,8 @@ function comment_post($edit) {
// Allow modules to respond to the updating of a comment.
module_invoke_all
(
'comment'
,
'update'
,
$edit
);
// Add entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
// Add
an
entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: updated %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
}
else
{
// Add the comment to database.
...
...
@@ -638,7 +638,7 @@ function comment_post($edit) {
module_invoke_all
(
'comment'
,
'insert'
,
$edit
);
// Add an entry to the watchdog log.
watchdog
(
'content'
,
t
(
'Comment: added %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
watchdog
(
'content'
,
t
(
'Comment: added %subject.'
,
array
(
'%subject'
=>
'<em>'
.
$edit
[
'subject'
]
.
'</em>'
)),
WATCHDOG_NOTICE
,
l
(
t
(
'view'
),
'node/'
.
$edit
[
'nid'
],
NULL
,
NULL
,
'comment-'
.
$edit
[
'cid'
]));
}
// Clear the cache so an anonymous user can see his comment being added.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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