make sure old fetch_url calls (and those that provided their own curl wrapper) go through z_fetch_url

This commit is contained in:
friendica
2013-02-25 20:06:33 -08:00
parent 46a89910ae
commit c45a8e2763
3 changed files with 15 additions and 28 deletions

View File

@@ -672,9 +672,12 @@ function import_profile_photo($photo,$xchan) {
$filename = basename($photo);
$img_str = fetch_url($photo,true);
$type = guess_image_type($photo,true);
$result = z_fetch_url($photo,true);
if($result['success'])
$img_str = $result['body'];
$img = new Photo($img_str, $type);
if($img->is_valid()) {