2
0
forked from Wavyzz/dolibarr

Time to enable fontawesome icons on weather feature

This commit is contained in:
Alexandre SPANGARO
2020-09-15 03:42:35 +02:00
parent b7b1de4580
commit 4137e92430
2 changed files with 5 additions and 5 deletions

View File

@@ -3268,7 +3268,7 @@ function img_weather($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $mo
if (is_numeric($picto))
{
$leveltopicto = array(0=>'weather-clear.png', 1=>'weather-few-clouds.png', 2=>'weather-clouds.png', 3=>'weather-many-clouds.png', 4=>'weather-storm.png');
//return '<i class="fa fa-weather-level'.$picto.'"></i>';
return '<i class="fa fa-weather-level'.$picto.'"></i>';
$picto = $leveltopicto[$picto];
} elseif (!preg_match('/(\.png|\.gif)$/i', $picto)) $picto .= '.png';