Half fixed issue #4 : Language icon is ok now.
This commit is contained in:
parent
454c51ce74
commit
5c26f2f233
@ -134,11 +134,11 @@ var $tabForbidden=array("adminentrynode", "admingroup", "adminnode", "home", "ad
|
||||
for ($i=0; $i<count($tab);$i++)
|
||||
{
|
||||
/* récupération de l'image de la langue courante */
|
||||
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/language/".strtolower($tab[$i]->getCode()).".png"))
|
||||
if (file_exists($GLOBALS['CONF_DATA_PATH']."data/image/icons/language/".strtolower($tab[$i]->getCode()).".png"))
|
||||
{
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/language/".strtolower($tab[$i]->getCode()).".png";
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/language/".strtolower($tab[$i]->getCode()).".png";
|
||||
}else{
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/language/default.png";
|
||||
$img=$GLOBALS['CONF_DATA_PATH']."data/image/icons/language/default.png";
|
||||
}
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("blocName.pictoLanguage",$img,htmlentitiesconv($tab[$i]->getLibelle($tab[$i]->getCode())));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user