Skip to content
Snippets Groups Projects
Commit 206ad87a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #40855 by Ber: fixed typo in watchdog message.

parent 0dc66091
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ function file_check_upload($source) { ...@@ -148,7 +148,7 @@ function file_check_upload($source) {
if (function_exists('mime_content_type')) { if (function_exists('mime_content_type')) {
$file->filemime = mime_content_type($file->filepath); $file->filemime = mime_content_type($file->filepath);
if ($file->filemime != $_FILES["edit"]["type"][$source]) { if ($file->filemime != $_FILES["edit"]["type"][$source]) {
watchdog('file', t('For %file the system thinks its MIME type is %detected while the user has given %given for MIME type', array('%file' => theme('placeholder', $file->filepath), '%detected' => theme('placeholder', $file>-filemime), '%given' => theme('placeholder', $_FILES['edit']['type'][$source])))); watchdog('file', t('For %file the system thinks its MIME type is %detected while the user has given %given for MIME type', array('%file' => theme('placeholder', $file->filepath), '%detected' => theme('placeholder', $file->filemime), '%given' => theme('placeholder', $_FILES['edit']['type'][$source]))));
} }
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment