mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 20:03:46 +00:00
no appid logic not followed
This commit is contained in:
parent
22cc81cbc5
commit
867f48aebe
1 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ function curweather_plugin_settings(&$a,&$s) {
|
||||||
$curweather_loc = get_pconfig(local_user(), 'curweather', 'curweather_loc');
|
$curweather_loc = get_pconfig(local_user(), 'curweather', 'curweather_loc');
|
||||||
$curweather_units = get_pconfig(local_user(), 'curweather', 'curweather_units');
|
$curweather_units = get_pconfig(local_user(), 'curweather', 'curweather_units');
|
||||||
$appid = get_config('curweather','appid');
|
$appid = get_config('curweather','appid');
|
||||||
if (x($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 optain one.');
|
||||||
} else {
|
} else {
|
||||||
$noappidtext = '';
|
$noappidtext = '';
|
||||||
|
@ -174,7 +174,7 @@ function curweather_plugin_settings(&$a,&$s) {
|
||||||
$s = replace_macros ($t, array(
|
$s = replace_macros ($t, array(
|
||||||
'$submit' => t('Save Settings'),
|
'$submit' => t('Save Settings'),
|
||||||
'$header' => t('Current Weather').' '.t('Settings'),
|
'$header' => t('Current Weather').' '.t('Settings'),
|
||||||
'$noappidtext' => t('No APPID found, please contact your admin to optain one.'),
|
'$noappidtext' => $noappidtext,
|
||||||
'$info' => t('Enter either the name of your location or the zip code.'),
|
'$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. <em>Berlin,DE</em> or <em>14476,DE</em>.') ),
|
'$curweather_loc' => array( 'curweather_loc', t('Your Location'), $curweather_loc, t('Identifier of your location (name or zip code), e.g. <em>Berlin,DE</em> or <em>14476,DE</em>.') ),
|
||||||
'$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 temperatur should be displayed in °C or °F'), array('metric'=>'°C', 'imperial'=>'°F')),
|
||||||
|
|
Loading…
Reference in a new issue