Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
dde18582
Commit
dde18582
authored
Sep 11, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#904994
by douggreen, chx: watchdog should always use replaceable argument.
parent
8ed9f604
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
includes/common.inc
includes/common.inc
+3
-3
modules/comment/comment.admin.inc
modules/comment/comment.admin.inc
+1
-1
No files found.
includes/common.inc
View file @
dde18582
...
...
@@ -2398,7 +2398,7 @@ function drupal_deliver_page($page_callback_result, $default_delivery_callback =
// If a delivery callback is specified, but doesn't exist as a function,
// something is wrong, but don't print anything, since it's not known
// what format the response needs to be in.
watchdog
(
'delivery callback not found'
,
check_plain
(
$delivery_callback
)
.
': '
.
check_plain
(
$_GET
[
'q'
]),
NULL
,
WATCHDOG_ERROR
);
watchdog
(
'delivery callback not found'
,
'callback %callback not found: %q.'
,
array
(
'%callback'
=>
$delivery_callback
,
'%q'
=>
$_GET
[
'q'
])
,
WATCHDOG_ERROR
);
}
}
...
...
@@ -2431,7 +2431,7 @@ function drupal_deliver_html_page($page_callback_result) {
// Print a 404 page.
drupal_add_http_header
(
'Status'
,
'404 Not Found'
);
watchdog
(
'page not found'
,
check_plain
(
$_GET
[
'q'
]),
NULL
,
WATCHDOG_WARNING
);
watchdog
(
'page not found'
,
'page not found: %q.'
,
array
(
'%q'
=>
$_GET
[
'q'
])
,
WATCHDOG_WARNING
);
// Keep old path for reference, and to allow forms to redirect to it.
if
(
!
isset
(
$_GET
[
'destination'
]))
{
...
...
@@ -2460,7 +2460,7 @@ function drupal_deliver_html_page($page_callback_result) {
case
MENU_ACCESS_DENIED
:
// Print a 403 page.
drupal_add_http_header
(
'Status'
,
'403 Forbidden'
);
watchdog
(
'access denied'
,
check_plain
(
$_GET
[
'q'
]),
NULL
,
WATCHDOG_WARNING
);
watchdog
(
'access denied'
,
'access denied: %q'
,
array
(
'%q'
=>
$_GET
[
'q'
])
,
WATCHDOG_WARNING
);
// Keep old path for reference, and to allow forms to redirect to it.
if
(
!
isset
(
$_GET
[
'destination'
]))
{
...
...
modules/comment/comment.admin.inc
View file @
dde18582
...
...
@@ -273,7 +273,7 @@ function comment_confirm_delete_submit($form, &$form_state) {
// Delete the comment and its replies.
comment_delete
(
$comment
->
cid
);
drupal_set_message
(
t
(
'The comment and all its replies have been deleted.'
));
watchdog
(
'content'
,
t
(
'Deleted comment @cid and its replies.'
,
array
(
'@cid'
=>
$comment
->
cid
)
));
watchdog
(
'content'
,
'Deleted comment @cid and its replies.'
,
array
(
'@cid'
=>
$comment
->
cid
));
// Clear the cache so an anonymous user sees that his comment was deleted.
cache_clear_all
();
...
...
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