Skip to content

Commit

Permalink
Merge pull request #714 from FHenry/3.3
Browse files Browse the repository at this point in the history
fix [ bug #749 ]
  • Loading branch information
eldy committed Mar 6, 2013
2 parents d5822b7 + 617a714 commit 1f0dbc6
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions htdocs/core/lib/admin.lib.php
Expand Up @@ -1147,19 +1147,21 @@ function showModulesExludedForExternal($modules)
$text=$langs->trans("OnlyFollowingModulesAreOpenedToExternalUsers");
$listofmodules=explode(',',$conf->global->MAIN_MODULES_FOR_EXTERNAL);
$i=0;
foreach($modules as $module)
{
$moduleconst=$module->const_name;
$modulename=strtolower($module->name);
//print 'modulename='.$modulename;

//if (empty($conf->global->$moduleconst)) continue;
if (! in_array($modulename,$listofmodules)) continue;

if ($i > 0) $text.=', ';
else $text.=' ';
$i++;
$text .= $langs->trans('Module'.$module->numero.'Name');
if (!empty($modules)) {
foreach($modules as $module)
{
$moduleconst=$module->const_name;
$modulename=strtolower($module->name);
//print 'modulename='.$modulename;

//if (empty($conf->global->$moduleconst)) continue;
if (! in_array($modulename,$listofmodules)) continue;

if ($i > 0) $text.=', ';
else $text.=' ';
$i++;
$text .= $langs->trans('Module'.$module->numero.'Name');
}
}
return img_picto($langs->trans('InfoAdmin'), 'star').' '.$text;
}
Expand Down

0 comments on commit 1f0dbc6

Please sign in to comment.