parent
43bb17f995
commit
afb4de318b
1 changed files with 13 additions and 2 deletions
|
@ -149,7 +149,7 @@ class FlickrBridge extends BridgeAbstract {
|
|||
$areas[$size['width'] * $size['height']] = $size['url'];
|
||||
}
|
||||
|
||||
return array(max($areas));
|
||||
return array($this->fixURL(max($areas)));
|
||||
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,18 @@ class FlickrBridge extends BridgeAbstract {
|
|||
|
||||
}
|
||||
|
||||
return min($areas);
|
||||
return $this->fixURL(min($areas));
|
||||
|
||||
}
|
||||
|
||||
private function fixURL($url) {
|
||||
|
||||
// For some reason the image URLs don't include the protocol (https)
|
||||
if(strpos($url, '//') === 0) {
|
||||
$url = 'https:' . $url;
|
||||
}
|
||||
|
||||
return $url;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue