mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
[bridges] use BridgeAbstract::getContents instead of file_get_contents
use of the proxy feature when enabled Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
747e54d64a
commit
4a1f360d39
8 changed files with 10 additions and 10 deletions
|
@ -25,7 +25,7 @@ class FlickrExploreBridge extends BridgeAbstract{
|
|||
$imageID = reset($imageURIs);
|
||||
|
||||
// Get the image JSON via Flickr API
|
||||
$imageJSON = json_decode(file_get_contents('https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=103b574d49bd51f0e18bfe907da44a0f&photo_id='.$imageID.'&format=json&nojsoncallback=1')) or $this->returnServerError('Could not request Flickr.'); // FIXME: Request time too long...
|
||||
$imageJSON = json_decode($this->getContents('https://api.flickr.com/services/rest/?method=flickr.photos.getInfo&api_key=103b574d49bd51f0e18bfe907da44a0f&photo_id='.$imageID.'&format=json&nojsoncallback=1')) or $this->returnServerError('Could not request Flickr.'); // FIXME: Request time too long...
|
||||
|
||||
$item = array();
|
||||
$item['uri'] = 'https://flickr.com/photo.gne?id='.$imageID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue