doxygen
This commit is contained in:
parent
7f0f72ca47
commit
ad3bc649af
@ -1028,7 +1028,7 @@ function showWeather($totallate, $text, $options, $morecss = '')
|
|||||||
* $conf->global->MAIN_METEO_LEVELx
|
* $conf->global->MAIN_METEO_LEVELx
|
||||||
*
|
*
|
||||||
* @param int $totallate Nb of element late
|
* @param int $totallate Nb of element late
|
||||||
* @return string Return img tag of weather
|
* @return stdClass Return img tag of weather
|
||||||
*/
|
*/
|
||||||
function getWeatherStatus($totallate)
|
function getWeatherStatus($totallate)
|
||||||
{
|
{
|
||||||
@ -1063,20 +1063,16 @@ function getWeatherStatus($totallate)
|
|||||||
if ($totallate <= $level0) {
|
if ($totallate <= $level0) {
|
||||||
$weather->picto = 'weather-clear.png';
|
$weather->picto = 'weather-clear.png';
|
||||||
$weather->level = 0;
|
$weather->level = 0;
|
||||||
}
|
} elseif ($totallate <= $level1) {
|
||||||
elseif ($totallate <= $level1) {
|
|
||||||
$weather->picto = 'weather-few-clouds.png';
|
$weather->picto = 'weather-few-clouds.png';
|
||||||
$weather->level = 1;
|
$weather->level = 1;
|
||||||
}
|
} elseif ($totallate <= $level2) {
|
||||||
elseif ($totallate <= $level2) {
|
|
||||||
$weather->picto = 'weather-clouds.png';
|
$weather->picto = 'weather-clouds.png';
|
||||||
$weather->level = 2;
|
$weather->level = 2;
|
||||||
}
|
} elseif ($totallate <= $level3) {
|
||||||
elseif ($totallate <= $level3) {
|
|
||||||
$weather->picto = 'weather-many-clouds.png';
|
$weather->picto = 'weather-many-clouds.png';
|
||||||
$weather->level = 3;
|
$weather->level = 3;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$weather->picto = 'weather-storm.png';
|
$weather->picto = 'weather-storm.png';
|
||||||
$weather->level = 4;
|
$weather->level = 4;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user