Fixed block capture so that it would work properly with blocks to be cloned in rows

This commit is contained in:
Aurélien Vandoorine 2019-12-02 08:54:45 +01:00
parent d9ea617545
commit 0945a37c61
1 changed files with 1 additions and 1 deletions

View File

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