Fix: Import of MAC files
This commit is contained in:
parent
6e3b02bb99
commit
f4b595ee3f
@ -168,6 +168,8 @@ class ImportCsv extends ModeleImports
|
|||||||
|
|
||||||
dol_syslog("ImportCsv::open_file file=".$file);
|
dol_syslog("ImportCsv::open_file file=".$file);
|
||||||
|
|
||||||
|
ini_set('auto_detect_line_endings',1); // For MAC compatibility
|
||||||
|
|
||||||
$newfile=utf8_check($file)?utf8_decode($file):$file; // fopen need ISO file name
|
$newfile=utf8_check($file)?utf8_decode($file):$file; // fopen need ISO file name
|
||||||
$this->handle = fopen($newfile, "r");
|
$this->handle = fopen($newfile, "r");
|
||||||
if (! $this->handle)
|
if (! $this->handle)
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class modImport extends DolibarrModules
|
|||||||
// D<>pendances
|
// D<>pendances
|
||||||
$this->depends = array();
|
$this->depends = array();
|
||||||
$this->requiredby = array();
|
$this->requiredby = array();
|
||||||
$this->phpmin = array(4,2,0);
|
$this->phpmin = array(4,3,0); // Need auto_detect_line_endings php option to solve MAC pbs.
|
||||||
$this->phpmax = array();
|
$this->phpmax = array();
|
||||||
$this->need_dolibarr_version = array(2,7,-1); // Minimum version of Dolibarr required by module
|
$this->need_dolibarr_version = array(2,7,-1); // Minimum version of Dolibarr required by module
|
||||||
$this->need_javascript_ajax = 1;
|
$this->need_javascript_ajax = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user