Merge branch 'develop' of https://github.com/tainacan/tainacan into develop
This commit is contained in:
commit
89c052e441
|
@ -55,12 +55,9 @@ class CSV extends Importer {
|
||||||
$file->current();
|
$file->current();
|
||||||
$file->next();
|
$file->next();
|
||||||
|
|
||||||
$this->add_log(' Line to parse ' . $file->fgets() );
|
|
||||||
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
|
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
|
||||||
|
|
||||||
$values = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') );
|
$values = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') );
|
||||||
}else{
|
}else{
|
||||||
$this->add_log(' Line to parse ' . $file->fgets() );
|
|
||||||
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
|
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
|
||||||
$values = str_getcsv( rtrim($file->fgets()), $this->get_option('delimiter'), $this->get_option('enclosure') );
|
$values = str_getcsv( rtrim($file->fgets()), $this->get_option('delimiter'), $this->get_option('enclosure') );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue