commit
137238faed
|
|
@ -633,6 +633,7 @@ class TemplateProcessor
|
|||
// result can be verified via "Open XML SDK 2.5 Productivity Tool" (http://www.microsoft.com/en-us/download/details.aspx?id=30425)
|
||||
$imgTpl = '<w:pict><v:shape type="#_x0000_t75" style="width:{WIDTH};height:{HEIGHT}" stroked="f"><v:imagedata r:id="{RID}" o:title=""/></v:shape></w:pict>';
|
||||
|
||||
$i = 0;
|
||||
foreach ($searchParts as $partFileName => &$partContent) {
|
||||
$partVariables = $this->getVariablesForPart($partContent);
|
||||
|
||||
|
|
@ -665,6 +666,10 @@ class TemplateProcessor
|
|||
// replace on each iteration, because in one tag we can have 2+ inline variables => before proceed next variable we need to change $partContent
|
||||
$partContent = $this->setValueForPart($wholeTag, $replaceXml, $partContent, $limit);
|
||||
}
|
||||
|
||||
if (++$i >= $limit) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue