- Patch #561708 by jurgenhaas, gleroux02, ksenzee, Island Usurper: theme_image() chokes if getimagesize() fails.
parent
35bad3b13b
commit
71294994bd
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue