From 9cd91505294c5092dd856c8cc405daa5da2c5eea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 15 Mar 2023 14:44:32 +0100 Subject: [PATCH] Fix MAIN_MESSAGE_INSTALL_MODULES_DISABLED_CONTACT_US --- htdocs/admin/modules.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'));