| 1 |
<?php |
<?php |
| 2 |
// $Id: image.module,v 1.23 2009/10/20 00:55:29 dries Exp $ |
// $Id: image.module,v 1.24 2009/10/23 22:24:15 webchick Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 631 |
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'])); |
| 632 |
} |
} |
| 633 |
else { |
else { |
| 634 |
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)); |
| 635 |
drupal_add_http_header('500 Internal Server Error'); |
drupal_add_http_header('500 Internal Server Error'); |
| 636 |
print t('Error generating image.'); |
print t('Error generating image.'); |
| 637 |
drupal_exit(); |
drupal_exit(); |