fix image limit
This commit is contained in:
parent
ec1b3d35ee
commit
f7242e1250
|
|
@ -577,6 +577,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}"><v:imagedata r:id="{RID}" o:title=""/></v:shape></w:pict>';
|
||||
|
||||
$i = 0;
|
||||
foreach ($searchParts as $partFileName => &$partContent) {
|
||||
$partVariables = $this->getVariablesForPart($partContent);
|
||||
|
||||
|
|
@ -609,6 +610,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);
|
||||
}
|
||||
$i++;
|
||||
if($i >= $limit) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue