Skip to content

Commit

Permalink
changed built image urls to https
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-coulter committed May 13, 2014
1 parent c8faa21 commit ec48aff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpFlickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ function buildPhotoURL ($photo, $size = "Medium") {
}

if ($size == "original") {
$url = "http://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['originalsecret'] . "_o" . "." . $photo['originalformat'];
$url = "https://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['originalsecret'] . "_o" . "." . $photo['originalformat'];
} else {
$url = "http://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['secret'] . $sizes[$size] . ".jpg";
$url = "https://farm" . $photo['farm'] . ".static.flickr.com/" . $photo['server'] . "/" . $photo['id'] . "_" . $photo['secret'] . $sizes[$size] . ".jpg";
}
return $url;
}
Expand Down

0 comments on commit ec48aff

Please sign in to comment.