We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e97c3 commit 623bd99Copy full SHA for 623bd99
src/PhpWord/TemplateProcessor.php
@@ -265,17 +265,7 @@ public function getVariableCount()
265
*/
266
public function getVariables()
267
{
268
- $variables = $this->getVariablesForPart($this->tempDocumentMainPart);
269
-
270
- foreach ($this->tempDocumentHeaders as $headerXML) {
271
- $variables = array_merge($variables, $this->getVariablesForPart($headerXML));
272
- }
273
274
- foreach ($this->tempDocumentFooters as $footerXML) {
275
- $variables = array_merge($variables, $this->getVariablesForPart($footerXML));
276
277
278
- return array_unique($variables);
+ return array_keys($this->getVariableCount());
279
}
280
281
/**
0 commit comments