if (!empty($photo)) {
$img_str = Photo::getImageDataForPhoto($photo);
}
+ // @todo Possibly add a check for locally stored files
}
if (empty($img_str)) {
- $img_str = DI::httpRequest()->fetch($url, 4);
+ $img_str = DI::httpClient()->fetch($url, 4);
}
if (!$img_str) {