Skip to content

Commit 537f49e

Browse files
committed
Fix non-existing functions in Writer/ODText/Content.php
1 parent 4dcde8c commit 537f49e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Classes/PHPWord/Writer/ODText/Content.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function writeContent(PHPWord $pPHPWord = null)
115115
$numPStyles++;
116116

117117
$pPHPWord->addParagraphStyle('P' . $numPStyles, array());
118-
$element->setParagraph('P' . $numPStyles);
118+
$element->setParagraphStyle('P' . $numPStyles);
119119
}
120120
}
121121
}
@@ -338,4 +338,15 @@ protected function _writeTextBreak(PHPWord_Shared_XMLWriter $objWriter = null)
338338
private function _writeEndSection(PHPWord_Shared_XMLWriter $objWriter = null, PHPWord_Section $section)
339339
{
340340
}
341+
342+
/**
343+
* Dummy function just to make all samples produce ODT
344+
*
345+
* @todo Create the real function
346+
*/
347+
private function _writeSection(
348+
PHPWord_Shared_XMLWriter $objWriter = null,
349+
PHPWord_Section $section)
350+
{
351+
}
341352
}

0 commit comments

Comments
 (0)