]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
remove other occurrences of file_get_contents() being used to fetch urls
[friendica-addons.git] / fromgplus / fromgplus.php
index d1fac25b078a9cd670f948fdadfa1d28332b12ed..d86f7efea35cccd726be675cb71ef35cdf95cca2 100644 (file)
@@ -288,7 +288,7 @@ function fromgplus_fetch($a, $uid) {
        $account = get_pconfig($uid,'fromgplus','account');
        $key = get_config('fromgplus','key');
 
-       $result = file_get_contents("https://www.googleapis.com/plus/v1/people/".$account."/activities/public?alt=json&pp=1&key=".$key."&maxResults=".$maxfetch);
+       $result = fetch_url("https://www.googleapis.com/plus/v1/people/".$account."/activities/public?alt=json&pp=1&key=".$key."&maxResults=".$maxfetch);
        //$result = file_get_contents("google.txt");
        //file_put_contents("google.txt", $result);