1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

Use proxy settings on all get Requests

This commit is contained in:
Afterster 2015-02-05 13:56:12 +01:00
parent be383bfca9
commit 411ad4b06c
15 changed files with 40 additions and 44 deletions

View file

@ -76,7 +76,7 @@ class AmpacheGoogleMaps {
$name = "";
try {
$url = "http://maps.googleapis.com/maps/api/geocode/json?latlng=" . $latitude . "," . $longitude . "&sensor=false";
$request = Requests::get($url);
$request = Requests::get($url, array(), Core::requests_options());
$place = json_decode($request->body, true);
if (count($place['results']) > 0) {