2
0
forked from Wavyzz/dolibarr

Fix error message

This commit is contained in:
Laurent Destailleur
2021-04-19 15:09:13 +02:00
parent de4d5f3888
commit 2cd9289de1
2 changed files with 2 additions and 1 deletions

View File

@@ -1667,7 +1667,7 @@ class Setup extends DolibarrApi
}
if ($xmlremote && !preg_match('/\.xml$/', $xmlremote)) {
$langs->load("errors");
throw new RestException(500, $langs->trans("ErrorURLMustEndWith", '.xml'));
throw new RestException(500, $langs->trans("ErrorURLMustEndWith", $xmlremote, '.xml'));
}
if ($target == 'local') {