mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
This commit is contained in:
parent
72c24efe5b
commit
19b2c8d833
9 changed files with 14 additions and 16 deletions
|
@ -48,7 +48,7 @@ function getWeather($loc, $units = 'metric', $lang = 'en', $appid = '', $cacheti
|
|||
}
|
||||
|
||||
try {
|
||||
$res = new SimpleXMLElement(DI::httpRequest()->fetchUrl($url));
|
||||
$res = new SimpleXMLElement(DI::httpRequest()->fetch($url));
|
||||
} catch (Exception $e) {
|
||||
if (empty($_SESSION['curweather_notice_shown'])) {
|
||||
info(DI::l10n()->t('Error fetching weather data. Error was: '.$e->getMessage()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue