$res = new SimpleXMLElement(Network::fetchUrl($url));
} catch (Exception $e) {
if (empty($_SESSION['curweather_notice_shown'])) {
- notice(DI::l10n()->t('Error fetching weather data. Error was: '.$e->getMessage()));
+ notice(DI::l10n()->t('Error fetching weather data. Error was: ' . $e->getMessage()));
$_SESSION['curweather_notice_shown'] = true;
}
}
DBA::close($r);
} else {
- notice(DI::l10n()->t("No entries \x28some entries may be hidden\x29.") . EOL);
+ notice(DI::l10n()->t("No entries \x28some entries may be hidden\x29."));
}
$tpl = Renderer::getMarkupTemplate('directory_header.tpl');