Skip to content

Commit

Permalink
rewind changes, dont make sense, need another solution at some point
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasvielmetter committed Jul 4, 2017
1 parent 9305fcc commit 5cd161b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/WrkLst/DocxMustache/DocxMustache.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ protected function InsertImages($ns, &$imgs, &$rels_file, &$main_file)
$sxe->addAttribute('Target', 'media/'.$imgs[$k]['img_file_dest']);

foreach ($main_file->xpath('//w:drawing') as $k=>$drawing) {
if (isset($main_file->xpath('//w:drawing')[$k]->children($ns['wp'])->children($ns['a'])
->graphic->graphicData->children($ns['pic'])->pic->blipFill->children($ns['a'])
->blip->attributes($ns['r'])['embed']) && $img['id'] == $main_file->xpath('//w:drawing')[$k]->children($ns['wp'])->children($ns['a'])
if ($img['id'] == $main_file->xpath('//w:drawing')[$k]->children($ns['wp'])->children($ns['a'])
->graphic->graphicData->children($ns['pic'])->pic->blipFill->children($ns['a'])
->blip->attributes($ns['r'])['embed']) {
$main_file->xpath('//w:drawing')[$k]->children($ns['wp'])->children($ns['a'])
Expand Down

0 comments on commit 5cd161b

Please sign in to comment.