diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 6f4a1092194..87696535d2f 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -522,6 +522,7 @@ if ($step == 3 && $datatoimport) print load_fiche_titre($langs->trans("InformationOnSourceFile"), '', ''); + print '
'; print '
'; print ''; @@ -540,6 +541,13 @@ if ($step == 3 && $datatoimport) dol_fiche_end(); + + if ($format == 'xlsx' && ! class_exists('XMLWriter')) { + $langs->load("install"); + print info_admin($langs->trans("ErrorPHPDoesNotSupport", 'php-xml'), 0, 0, 1, 'error'); + } + + print '
'; print ''; diff --git a/htdocs/langs/en_US/install.lang b/htdocs/langs/en_US/install.lang index 708b3bac479..5b15717c12f 100644 --- a/htdocs/langs/en_US/install.lang +++ b/htdocs/langs/en_US/install.lang @@ -25,6 +25,7 @@ ErrorPHPDoesNotSupportCurl=Your PHP installation does not support Curl. ErrorPHPDoesNotSupportCalendar=Your PHP installation does not support php calendar extensions. ErrorPHPDoesNotSupportUTF8=Your PHP installation does not support UTF8 functions. Dolibarr cannot work correctly. Resolve this before installing Dolibarr. ErrorPHPDoesNotSupportIntl=Your PHP installation does not support Intl functions. +ErrorPHPDoesNotSupport=Your PHP installation does not support %s functions. ErrorDirDoesNotExists=Directory %s does not exist. ErrorGoBackAndCorrectParameters=Go back and check/correct the parameters. ErrorWrongValueForParameter=You may have typed a wrong value for parameter '%s'.