Active custom modules - reviews

This commit is contained in:
Vaadasch
2024-05-18 00:56:57 +02:00
parent 4326b95da9
commit 3ae85eff76
3 changed files with 5 additions and 4 deletions

View File

@@ -38,15 +38,17 @@ if (!empty(getenv('DOLI_ENABLE_MODULES'))) {
printf("Activating module ".$mod." ...");
try {
$res = activateModule('mod' . $mod);
if ($res < 0) {
print(" FAILED. Unable to find module. Be sure to check the case\n");
print(" FAILED. Unable to load module. Be sure to check the case\n");
}
else {
printf(" OK\n");
}
}
catch (Throwable $t) {
print(" FAILED. Unable to find module. Be sure to check the case\n");
print(" FAILED. Unable to load module. Be sure to check the case\n");
}
}
}