Bugfix: Work item 15537 - Excel2007 Reader canRead function bug
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@70501 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
9704feec19
commit
a0ac293ec6
|
@ -200,14 +200,16 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader
|
||||||
if ($zip->open($pFilename) === true) {
|
if ($zip->open($pFilename) === true) {
|
||||||
// check if it is an OOXML archive
|
// check if it is an OOXML archive
|
||||||
$rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels"));
|
$rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels"));
|
||||||
foreach ($rels->Relationship as $rel) {
|
if ($rels) {
|
||||||
switch ($rel["Type"]) {
|
foreach ($rels->Relationship as $rel) {
|
||||||
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument":
|
switch ($rel["Type"]) {
|
||||||
if (basename($rel["Target"]) == 'workbook.xml') {
|
case "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument":
|
||||||
$xl = true;
|
if (basename($rel["Target"]) == 'workbook.xml') {
|
||||||
}
|
$xl = true;
|
||||||
break;
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$zip->close();
|
$zip->close();
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
Fixed in SVN:
|
Fixed in SVN:
|
||||||
- Bugfix: (MBaker) Work item 15459 - Invalid cell coordinate in Autofilter for Excel2007 Writer
|
- Bugfix: (MBaker) Work item 15459 - Invalid cell coordinate in Autofilter for Excel2007 Writer
|
||||||
- Bugfix: (MBaker) Work item 15518 - PCLZip library issue
|
- Bugfix: (MBaker) Work item 15518 - PCLZip library issue
|
||||||
|
- Bugfix: (MBaker) Work item 15537 - Excel2007 Reader canRead function bug
|
||||||
- General: (MBaker) Work item 15405 - Two easy to fix Issues concerning PHPExcel_Token_Stack (l10n/UC)
|
- General: (MBaker) Work item 15405 - Two easy to fix Issues concerning PHPExcel_Token_Stack (l10n/UC)
|
||||||
- General: (MBaker) Work item 15461 - Locale file paths not fit for windows
|
- General: (MBaker) Work item 15461 - Locale file paths not fit for windows
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue