Use openFileInZip() only (#421)

This commit is contained in:
Adrien Loison authored and GitHub committed 2017-05-22 14:39:26 +02:00
1 parent 606103f7fc
commit 99816b0b8e
2 files changed
+2 -14

No files matched your search

+1 -2
View File
@@ -128,8 +128,7 @@ class RowIterator implements IteratorInterface
{
$this->xmlReader->close();
$sheetDataFilePath = 'zip://' . $this->filePath . '#' . $this->sheetDataXMLFilePath;
if ($this->xmlReader->open($sheetDataFilePath) === false) {
if ($this->xmlReader->openFileInZip($this->filePath, $this->sheetDataXMLFilePath) === false) {
throw new IOException("Could not open \"{$this->sheetDataXMLFilePath}\".");
}