Fix sulla ricorsione HTMLBuilder

This commit is contained in:
Thomas Zilio 2018-02-16 09:40:28 +01:00
parent 0d7bb0973f
commit d4fd77859b
1 changed files with 3 additions and 3 deletions

View File

@ -82,7 +82,7 @@ class HTMLBuilder
];
/** @var int Limite di ricorsione interna */
protected $max_recursion = 10;
protected static $max_recursion = 10;
/**
* Esegue la sostituzione dei tag personalizzati con il relativo codice HTML.
@ -103,7 +103,7 @@ class HTMLBuilder
$result = !empty($class) ? $class->manage($json) : '';
// Ricorsione
if ($depth < $max_recursion) {
if ($depth < self::$max_recursion) {
$result = self::replace($result, $depth++);
}
@ -118,7 +118,7 @@ class HTMLBuilder
$result = self::generate($json);
// Ricorsione
if ($depth < $max_recursion) {
if ($depth < self::$max_recursion) {
$result = self::replace($result, $depth++);
}