X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=curweather%2Fcurweather.php;h=303fbbf942116290586c6d92c8e4e5044893b2c0;hb=c4c2536052614d3bdaf8e3ed88cc99f38e476dae;hp=2b8682d157168316df0a46ccb7641e6082867fd1;hpb=147ac6b774d4210f2e2cb7db88edded97e22a128;p=friendica-addons.git diff --git a/curweather/curweather.php b/curweather/curweather.php index 2b8682d1..303fbbf9 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -41,7 +41,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti } try { - $res = new SimpleXMLElement(DI::httpRequest()->fetch($url)); + $res = new SimpleXMLElement(DI::httpClient()->fetch($url)); } catch (Exception $e) { if (empty($_SESSION['curweather_notice_shown'])) { notice(DI::l10n()->t('Error fetching weather data. Error was: ' . $e->getMessage()));