@@ 1487-1491 (lines=5) @@ | ||
1484 | \PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1485 | ); |
|
1486 | $drawings = array(); |
|
1487 | foreach ($relsVML->Relationship as $ele) { |
|
1488 | if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") { |
|
1489 | $drawings[(string) $ele["Id"]] = self::dirAdd($vmlRelationship, $ele["Target"]); |
|
1490 | } |
|
1491 | } |
|
1492 | ||
1493 | // Fetch VML document |
|
1494 | $vmlDrawing = simplexml_load_string( |
|
@@ 1545-1549 (lines=5) @@ | ||
1542 | \PhpSpreadsheet\Settings::getLibXmlLoaderOptions() |
|
1543 | ); |
|
1544 | $drawings = array(); |
|
1545 | foreach ($relsWorksheet->Relationship as $ele) { |
|
1546 | if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing") { |
|
1547 | $drawings[(string) $ele["Id"]] = self::dirAdd("$dir/$fileWorksheet", $ele["Target"]); |
|
1548 | } |
|
1549 | } |
|
1550 | if ($xmlSheet->drawing && !$this->readDataOnly) { |
|
1551 | foreach ($xmlSheet->drawing as $drawing) { |
|
1552 | $fileDrawing = $drawings[(string) self::getArrayItem($drawing->attributes("http://schemas.openxmlformats.org/officeDocument/2006/relationships"), "id")]; |