Merge pull request #1763 from TimeTonic/fixes-1750-block-with-images-inside

TemplateProcessor cloneBlock wrongly clones images
This commit is contained in:
troosan 2021-02-07 22:27:40 +01:00 committed by GitHub
commit bf8f2ac12f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1146,7 +1146,7 @@ class TemplateProcessor
{
$results = array();
for ($i = 1; $i <= $count; $i++) {
$results[] = preg_replace('/\$\{(.*?)\}/', '\${\\1#' . $i . '}', $xmlBlock);
$results[] = preg_replace('/\$\{([^:]*?)(:.*?)?\}/', '\${\1#' . $i . '\2}', $xmlBlock);
}
return $results;