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();
|
$results = array();
|
||||||
for ($i = 1; $i <= $count; $i++) {
|
for ($i = 1; $i <= $count; $i++) {
|
||||||
$results[] = preg_replace('/\$\{(.*?)(:.*)?\}/', '\${\1#' . $i . '\2}', $xmlBlock);
|
$results[] = preg_replace('/\$\{([^:]*?)(:.*?)?\}/', '\${\1#' . $i . '\2}', $xmlBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $results;
|
return $results;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user