Commit 71294994 authored by Dries's avatar Dries

- Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper:...

- Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper: theme_image() chokes if getimagesize() fails.
parent 35bad3b1
......@@ -336,7 +336,7 @@ function image_gd_create_tmp(stdClass $image, $width, $height) {
*/
function image_gd_get_info(stdClass $image) {
$details = FALSE;
$data = getimagesize($image->source);
$data = getimagesize(drupal_realpath($image->source));
if (isset($data) && is_array($data)) {
$extensions = array('1' => 'gif', '2' => 'jpg', '3' => 'png');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment