return $r;
}
-function curweather_network_mod_init(App $a, array &$b)
+function curweather_network_mod_init(App $a, string &$body)
{
if (!intval(DI::pConfig()->get(local_user(), 'curweather', 'curweather_enable'))) {
return;
$appid = DI::config()->get('curweather', 'appid');
$cachetime = intval(DI::config()->get('curweather', 'cachetime'));
- if ($units === "") {
+ if ($units === '') {
$units = 'metric';
}
$appid = DI::config()->get('curweather', 'appid');
$cachetime = DI::config()->get('curweather', 'cachetime');
- $t = Renderer::getMarkupTemplate("admin.tpl", "addon/curweather/" );
+ $t = Renderer::getMarkupTemplate('admin.tpl', 'addon/curweather/' );
$o = Renderer::replaceMacros($t, [
'$submit' => DI::l10n()->t('Save Settings'),