Skip to content

Commit

Permalink
Allow string in array argument. Ref #4012
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Aug 23, 2021
1 parent 23d1da2 commit 4e8176f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Tags/Iterate.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ class Iterate extends Tags
*/
public function index()
{
return $this->iterate($this->params->get('array'));
$value = $this->params->get('array');

if (is_string($value)) {
$value = $this->context->get($value);
}

return $this->iterate($value);
}

/**
Expand Down

0 comments on commit 4e8176f

Please sign in to comment.