Commit b5724e09 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4840 Fixed recursive dependency detection in templates

parent 3065134b
......@@ -396,7 +396,7 @@ class templateHandling
$array =
array_map(
function ($a) use (&$cache, $depends, $forbidden, $key)
function ($a) use (&$cache, &$errors, $depends, $forbidden, $key)
{
if (in_array($a, $forbidden)) {
$errors[] = sprintf(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment