Fixed issue #3 : Path of languages icons was wrong in language class.

This commit is contained in:
Rooty 2020-12-07 18:15:46 +01:00
parent 41768e6a3a
commit 454c51ce74

View File

@ -169,11 +169,11 @@ var $status = null;
function getIcone()
{
/* recuperation de l'image de la langue courante */
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/language/".strtolower($this->getCode()).".png"))
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/icons/language/".strtolower($this->getCode()).".png"))
{
$img=$GLOBALS['CONF_DATA_PATH']."data/image/language/".strtolower($this->getCode()).".png";
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/language/".strtolower($this->getCode()).".png";
}else{
$img=$GLOBALS['CONF_DATA_PATH']."data/image/language/default.png";
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/language/default.png";
}
return $img;
}