X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=curweather%2Fcurweather.php;h=71d95e4640cb2fd8443786b1047ef4dd604ba497;hb=9f18d7e6ded53ce9338c624ed4228315581fb217;hp=59d7e37886118caad7ea1f7d430f390225d53872;hpb=96b8512e5ef41996b9547407acba66ef4e401b1d;p=friendica-addons.git diff --git a/curweather/curweather.php b/curweather/curweather.php index 59d7e378..71d95e46 100644 --- a/curweather/curweather.php +++ b/curweather/curweather.php @@ -57,7 +57,7 @@ function getWeather( $loc, $units='metric', $lang='en', $appid='', $cachetime=0) 'icon' => (string)$res->weather['icon'] ); set_pconfig(local_user(), 'curweather', 'last', $now->getTimestamp()); - Cache::set('curweather'.md5($url), serialize($r)); + Cache::set('curweather'.md5($url), serialize($r), CACHE_HOUR); return $r; } @@ -158,7 +158,7 @@ function curweather_plugin_settings(&$a,&$s) { $curweather_units = get_pconfig(local_user(), 'curweather', 'curweather_units'); $appid = get_config('curweather','appid'); if ($appid=="") { - $noappidtext = t('No APPID found, please contact your admin to optain one.'); + $noappidtext = t('No APPID found, please contact your admin to obtain one.'); } else { $noappidtext = ''; } @@ -173,7 +173,7 @@ function curweather_plugin_settings(&$a,&$s) { '$noappidtext' => $noappidtext, '$info' => t('Enter either the name of your location or the zip code.'), '$curweather_loc' => array( 'curweather_loc', t('Your Location'), $curweather_loc, t('Identifier of your location (name or zip code), e.g. Berlin,DE or 14476,DE.') ), - '$curweather_units' => array( 'curweather_units', t('Units'), $curweather_units, t('select if the temperatur should be displayed in °C or °F'), array('metric'=>'°C', 'imperial'=>'°F')), + '$curweather_units' => array( 'curweather_units', t('Units'), $curweather_units, t('select if the temperature should be displayed in °C or °F'), array('metric'=>'°C', 'imperial'=>'°F')), '$enabled' => array( 'curweather_enable', t('Show weather data'), $enable, '') )); return;