Skip to content

Commit 90d4d30

Browse files
committed
Fix calls to the getEndingNotes method in the samples
This call requires both an array of writes and the filename, which was missing in both method calls.
1 parent e6501eb commit 90d4d30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/Sample_07_TemplateCloneRow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
echo date('H:i:s'), ' Saving the result document...', EOL;
5757
$templateProcessor->saveAs('results/Sample_07_TemplateCloneRow.docx');
5858

59-
echo getEndingNotes(array('Word2007' => 'docx'));
59+
echo getEndingNotes(array('Word2007' => 'docx'), 'results/Sample_07_TemplateCloneRow.docx');
6060
if (!CLI) {
6161
include_once 'Sample_Footer.php';
6262
}

samples/Sample_23_TemplateBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
echo date('H:i:s'), ' Saving the result document...', EOL;
1515
$templateProcessor->saveAs('results/Sample_23_TemplateBlock.docx');
1616

17-
echo getEndingNotes(array('Word2007' => 'docx'));
17+
echo getEndingNotes(array('Word2007' => 'docx'), 'results/Sample_23_TemplateBlock.docx');
1818
if (!CLI) {
1919
include_once 'Sample_Footer.php';
2020
}

0 commit comments

Comments
 (0)