From 617da2ec5f7c60ab81586686b7f9ff423888d49c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 Nov 2020 04:55:44 +0100 Subject: [PATCH] Fix error message --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 8ebac12eb2c..85184ce224a 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -4120,7 +4120,7 @@ function dol_print_error($db = '', $error = '', $errors = null) } else { // This should not happen, except if there is a bug somewhere. Enabled and check log in such case. print 'This website or feature is currently temporarly not available or failed after a technical error.

This may be due to a maintenance operation. Current status of operation are on next line...

'."\n"; - $langs->load("errors"); + $langs->loadLangs(array("main", "errors")); print $langs->trans("DolibarrHasDetectedError").'. '; print $langs->trans("YouCanSetOptionDolibarrMainProdToZero"); define("MAIN_CORE_ERROR", 1);