Fix error message
This commit is contained in:
parent
617da2ec5f
commit
64428f34a0
@ -4118,9 +4118,10 @@ function dol_print_error($db = '', $error = '', $errors = null)
|
|||||||
if (empty($dolibarr_main_prod)) {
|
if (empty($dolibarr_main_prod)) {
|
||||||
print $out;
|
print $out;
|
||||||
} else {
|
} else {
|
||||||
|
if (empty($langs->defaultlang)) $langs->setDefaultLang();
|
||||||
|
$langs->loadLangs(array("main", "errors")); // Reload main because language may have been set only on previous line so we have to reload files we need.
|
||||||
// This should not happen, except if there is a bug somewhere. Enabled and check log in such case.
|
// 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.<br><br>This may be due to a maintenance operation. Current status of operation are on next line...<br><br>'."\n";
|
print 'This website or feature is currently temporarly not available or failed after a technical error.<br><br>This may be due to a maintenance operation. Current status of operation are on next line...<br><br>'."\n";
|
||||||
$langs->loadLangs(array("main", "errors"));
|
|
||||||
print $langs->trans("DolibarrHasDetectedError").'. ';
|
print $langs->trans("DolibarrHasDetectedError").'. ';
|
||||||
print $langs->trans("YouCanSetOptionDolibarrMainProdToZero");
|
print $langs->trans("YouCanSetOptionDolibarrMainProdToZero");
|
||||||
define("MAIN_CORE_ERROR", 1);
|
define("MAIN_CORE_ERROR", 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user