Skip to content

Commit f2cd42f

Browse files
author
Roman Syroeshko
committed
1 parent 18c5462 commit f2cd42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Sample_12_HeaderFooter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
// Add footer
2828
$footer = $section->addFooter();
29-
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.', ENT_COMPAT, 'UTF-8'), array('align' => 'center'));
29+
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.', ENT_COMPAT, 'UTF-8'), null, array('alignment' => 'center'));
3030
$footer->addLink('https://github.com/PHPOffice/PHPWord', htmlspecialchars('PHPWord on GitHub', ENT_COMPAT, 'UTF-8'));
3131

3232
// Write some text

0 commit comments

Comments
 (0)