commit
1f0dbc698c
@ -1147,19 +1147,21 @@ function showModulesExludedForExternal($modules)
|
|||||||
$text=$langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers");
|
$text=$langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers");
|
||||||
$listofmodules=explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL);
|
$listofmodules=explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL);
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach($modules as $module)
|
if (!empty($modules)) {
|
||||||
{
|
foreach($modules as $module)
|
||||||
$moduleconst=$module->const_name;
|
{
|
||||||
$modulename=strtolower($module->name);
|
$moduleconst=$module->const_name;
|
||||||
//print 'modulename='.$modulename;
|
$modulename=strtolower($module->name);
|
||||||
|
//print 'modulename='.$modulename;
|
||||||
//if (empty($conf->global->$moduleconst)) continue;
|
|
||||||
if (! in_array($modulename,$listofmodules)) continue;
|
//if (empty($conf->global->$moduleconst)) continue;
|
||||||
|
if (! in_array($modulename,$listofmodules)) continue;
|
||||||
if ($i > 0) $text.=', ';
|
|
||||||
else $text.=' ';
|
if ($i > 0) $text.=', ';
|
||||||
$i++;
|
else $text.=' ';
|
||||||
$text .= $langs->trans('Module'.$module->numero.'Name');
|
$i++;
|
||||||
|
$text .= $langs->trans('Module'.$module->numero.'Name');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return img_picto($langs->trans('InfoAdmin'), 'star').' '.$text;
|
return img_picto($langs->trans('InfoAdmin'), 'star').' '.$text;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user