Skip to content

Commit

Permalink
Merged PHPOffice#495.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Syroeshko committed Aug 16, 2015
1 parent eff9ca2 commit e351717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/Sample_12_HeaderFooter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

// Add footer
$footer = $section->addFooter();
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.'), array('align' => 'center'));
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.'), null, array('align' => 'center'));
$footer->addLink('http://google.com', htmlspecialchars('Direct Google'));

// Write some text
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpWord/Tests/Element/PreserveTextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function testConstructWithArray()
{
$oPreserveText = new PreserveText(
'text',
array('align' => 'center'),
array('marginLeft' => 600, 'marginRight' => 600, 'marginTop' => 600, 'marginBottom' => 600)
array('size' => 16, 'color' => '1B2232'),
array('align' => 'center')
);
$this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oPreserveText->getFontStyle());
$this->assertInstanceOf(
Expand Down

0 comments on commit e351717

Please sign in to comment.