5.3 array syntax
This commit is contained in:
parent
f51422ad8d
commit
b011e6f157
@ -552,7 +552,7 @@ class TemplateProcessor
|
|||||||
*/
|
*/
|
||||||
protected function indexClonedVariables($count, $xmlBlock)
|
protected function indexClonedVariables($count, $xmlBlock)
|
||||||
{
|
{
|
||||||
$results = [];
|
$results = array();
|
||||||
for ($i = 1; $i <= $count; $i++) {
|
for ($i = 1; $i <= $count; $i++) {
|
||||||
$results[] = preg_replace('/\$\{(.*?)\}/', '\${\\1#' . $i . '}', $xmlBlock);
|
$results[] = preg_replace('/\$\{(.*?)\}/', '\${\\1#' . $i . '}', $xmlBlock);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user