possibly better fox for profil photo image type issue
This commit is contained in:
parent
bb469deb85
commit
0a9b2b6b15
@ -593,11 +593,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
|
|||||||
|
|
||||||
if($photo) {
|
if($photo) {
|
||||||
$filename = basename($photo);
|
$filename = basename($photo);
|
||||||
$type = guess_image_type($photo);
|
|
||||||
|
|
||||||
if(! $type)
|
|
||||||
$type = 'image/jpeg';
|
|
||||||
|
|
||||||
|
|
||||||
$result = z_fetch_url($photo,true);
|
$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 {
|
else {
|
||||||
|
Reference in New Issue
Block a user