mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-18 12:30:35 +01:00
Fix sulla ricorsione HTMLBuilder
This commit is contained in:
parent
0d7bb0973f
commit
d4fd77859b
@ -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++);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user