Merge pull request #15857 from frederic34/patch-8

doxygen
This commit is contained in:
Laurent Destailleur 2021-01-04 14:07:32 +01:00 committed by GitHub
commit 00d7bbc30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }