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

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

parent 63ece6f9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -149,7 +149,7 @@ function file_check_upload($source) { ...@@ -149,7 +149,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.
Please register or to comment