mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
9c266e59cf
commit
adada10eb6
19 changed files with 25 additions and 25 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue