diff options
-rw-r--r-- | include/photo/photo_driver.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 810e0cdc7..f9b6e5ea8 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -593,11 +593,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) { if($photo) { $filename = basename($photo); - $type = guess_image_type($photo); - - if(! $type) - $type = 'image/jpeg'; - $result = z_fetch_url($photo,true); @@ -614,6 +609,7 @@ function import_xchan_photo($photo,$xchan,$thing = false) { } } } + $type = guess_image_type($photo, $result['header']); } } else { |