fixed missing $types
This commit is contained in:
parent
294ab941b1
commit
cf872b330c
|
@ -62,11 +62,13 @@ if (!is_array($classes)) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// loop for active account types
|
// loop for active account types
|
||||||
for ($t = 0; $t < sizeof($types); $t++) {
|
$typeManager = new \LAM\TYPES\TypeManager();
|
||||||
$modules = $_SESSION['config']->get_AccountModules($types[$t]);
|
$types = $typeManager->getConfiguredTypes();
|
||||||
$container->addElement(new htmlSubTitle(LAM\TYPES\getTypeAlias($types[$t])), true);
|
foreach ($types as $type) {
|
||||||
|
$modules = $_SESSION['config']->get_AccountModules($type->getId());
|
||||||
|
$container->addElement(new htmlSubTitle($type->getAlias()), true);
|
||||||
for ($m = 0; $m < sizeof($modules); $m++) {
|
for ($m = 0; $m < sizeof($modules); $m++) {
|
||||||
$error = checkSchemaForModule($modules[$m], $types[$t]);
|
$error = checkSchemaForModule($modules[$m], $type->getScope());
|
||||||
$message = _("No problems found.");
|
$message = _("No problems found.");
|
||||||
$icon = '../../graphics/pass.png';
|
$icon = '../../graphics/pass.png';
|
||||||
if ($error != null) {
|
if ($error != null) {
|
||||||
|
@ -74,7 +76,7 @@ else {
|
||||||
$message = $error;
|
$message = $error;
|
||||||
}
|
}
|
||||||
// module name
|
// module name
|
||||||
$container->addElement(new htmlOutputText(getModuleAlias($modules[$m], $types[$t])));
|
$container->addElement(new htmlOutputText(getModuleAlias($modules[$m], $type->getScope())));
|
||||||
$container->addElement(new htmlSpacer('10px', null));
|
$container->addElement(new htmlSpacer('10px', null));
|
||||||
// icon
|
// icon
|
||||||
$container->addElement(new htmlImage($icon));
|
$container->addElement(new htmlImage($icon));
|
||||||
|
|
Loading…
Reference in New Issue