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

- Patch #622482 by seutje: fixed watchdog.

parent b006ec6c
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
...@@ -631,7 +631,7 @@ function image_style_generate() { ...@@ -631,7 +631,7 @@ function image_style_generate() {
file_transfer($image->source, array('Content-Type' => $image->info['mime_type'], 'Content-Length' => $image->info['file_size'])); file_transfer($image->source, array('Content-Type' => $image->info['mime_type'], 'Content-Length' => $image->info['file_size']));
} }
else { else {
watchdog('image', 'Unable to generate the derived image located at %path.', $destination); watchdog('image', 'Unable to generate the derived image located at %path.', array('%path' => $destination));
drupal_add_http_header('500 Internal Server Error'); drupal_add_http_header('500 Internal Server Error');
print t('Error generating image.'); print t('Error generating image.');
drupal_exit(); drupal_exit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment