diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 75187346558..8fcffe8178b 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -1123,7 +1123,11 @@ if ($mode == 'deploy') { } else { if (getDolGlobalString('MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US')) { // Show clean message - $message = info_admin($langs->trans('InstallModuleFromWebHasBeenDisabledContactUs')); + if (!is_numeric('MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US')) { + $message = info_admin($langs->trans(getDolGlobalString('MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US'))); + } else { + $message = info_admin($langs->trans('InstallModuleFromWebHasBeenDisabledContactUs')); + } } else { // Show technical message $message = info_admin($langs->trans("InstallModuleFromWebHasBeenDisabledByFile", $dolibarrdataroot.'/installmodules.lock'));