Fixed block capture so that it would work properly with blocks to be cloned in rows
This commit is contained in:
parent
d9ea617545
commit
0945a37c61
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue