Update admin.lib.php
This commit is contained in:
parent
e190b010d3
commit
bb22f2ccaf
@ -1380,14 +1380,12 @@ function complete_elementList_with_modules(&$elementList)
|
|||||||
$dirmod[$i] = $dir;
|
$dirmod[$i] = $dir;
|
||||||
//print "x".$modName." ".$orders[$i]."\n<br>";
|
//print "x".$modName." ".$orders[$i]."\n<br>";
|
||||||
|
|
||||||
if (!empty($objMod->module_parts['contactelement']))
|
if (!empty($objMod->module_parts['contactelement'])) {
|
||||||
{
|
if (is_array($objMod->module_parts['contactelement'])) {
|
||||||
if(is_array($objMod->module_parts['contactelement'])) {
|
|
||||||
foreach ($objMod->module_parts['contactelement'] as $elem => $title) {
|
foreach ($objMod->module_parts['contactelement'] as $elem => $title) {
|
||||||
$elementList[$elem] = $langs->trans($title);
|
$elementList[$elem] = $langs->trans($title);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$elementList[$objMod->name] = $langs->trans($objMod->name);
|
$elementList[$objMod->name] = $langs->trans($objMod->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user