@@ -523,20 +523,20 @@ public function insertImage($name, $srcFilename, $width = null, $height = null,
523
523
524
524
foreach ($ this ->tempDocumentHeaders as $ index => $ header ) {
525
525
$ tempHeaderRelationships = array_key_exists ($ index , $ this ->tempDocumentHeadersRelationships ) ? $ this ->tempDocumentHeadersRelationships [$ index ] : null ;
526
- $ imageInsertResult = $ this ->insertImageForPart ($ header , $ tempHeaderRelationships , $ name , $ mediaPath , $ width , $ height , $ filename, $ this -> getHeaderRelsName ( $ index ) );
526
+ $ imageInsertResult = $ this ->insertImageForPart ($ header , $ tempHeaderRelationships , $ name , $ mediaPath , $ width , $ height , $ filename );
527
527
if ($ imageInsertResult ) {
528
528
list ($ this ->tempDocumentHeaders [$ index ], $ this ->tempDocumentHeadersRelationships [$ index ]) = $ imageInsertResult ;
529
529
}
530
530
}
531
531
532
- $ imageInsertResult = $ this ->insertImageForPart ($ this ->tempDocumentMainPart , $ this ->tempDocumentRelationships , $ name , $ mediaPath , $ width , $ height , $ filename, ' word/_rels/document.xml.rels ' );
532
+ $ imageInsertResult = $ this ->insertImageForPart ($ this ->tempDocumentMainPart , $ this ->tempDocumentRelationships , $ name , $ mediaPath , $ width , $ height , $ filename );
533
533
if ($ imageInsertResult ) {
534
534
list ($ this ->tempDocumentMainPart , $ this ->tempDocumentRelationships ) = $ imageInsertResult ;
535
535
}
536
536
537
537
foreach ($ this ->tempDocumentFooters as $ index => $ footer ) {
538
538
$ tempFooterRelationships = array_key_exists ($ index , $ this ->tempDocumentFootersRelationships ) ? $ this ->tempDocumentFootersRelationships [$ index ] : null ;
539
- $ imageInsertResult = $ this ->insertImageForPart ($ footer , $ tempFooterRelationships , $ name , $ mediaPath , $ width , $ height , $ filename, $ this -> getFooterRelsName ( $ index ) );
539
+ $ imageInsertResult = $ this ->insertImageForPart ($ footer , $ tempFooterRelationships , $ name , $ mediaPath , $ width , $ height , $ filename );
540
540
if ($ imageInsertResult ) {
541
541
list ($ this ->tempDocumentFooters [$ index ], $ this ->tempDocumentFootersRelationships [$ index ]) = $ imageInsertResult ;
542
542
}
@@ -951,11 +951,10 @@ protected function getPartRelationshipId($tempPartRelationships, $mediaFileName)
951
951
* @param number $height Height of image in EMU
952
952
* @param string $filename Name of file as it should be inserted
953
953
* in document
954
- * @param string $relsFilePath Path to relationships file for part
955
954
*
956
955
* @return string[]|false
957
956
*/
958
- protected function insertImageForPart ($ tempDocumentPart , $ tempPartRelationships , $ name , $ mediaFileName , $ width , $ height , $ filename, $ relsFilePath )
957
+ protected function insertImageForPart ($ tempDocumentPart , $ tempPartRelationships , $ name , $ mediaFileName , $ width , $ height , $ filename )
959
958
{
960
959
$ relId = $ this ->getPartRelationshipId ($ tempPartRelationships , $ mediaFileName );
961
960
// hacks for no class scope in callback function in PHP5.3
0 commit comments