Added important call to setFileName()
[core.git] / inc / classes / main / file_directories / text / csv / class_CsvFile.php
index ade71d4..dbe99aa 100644 (file)
@@ -42,6 +42,9 @@ class CsvFile extends BaseTextFile implements CsvInputStreamer {
                // Get a new instance
                $fileInstance = new CsvFile();
 
+               // Set file name
+               $fileInstance->setFileName($fileName);
+
                // Init this abstract file
                $fileInstance->initFile($fileName);