Correzione contatore di ricorsione
This commit is contained in:
parent
d4fd77859b
commit
6ecee8cb5e
|
@ -104,7 +104,7 @@ class HTMLBuilder
|
||||||
|
|
||||||
// Ricorsione
|
// Ricorsione
|
||||||
if ($depth < self::$max_recursion) {
|
if ($depth < self::$max_recursion) {
|
||||||
$result = self::replace($result, $depth++);
|
$result = self::replace($result, $depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = str_replace($value, !empty($result) ? $result : $value, $html);
|
$html = str_replace($value, !empty($result) ? $result : $value, $html);
|
||||||
|
@ -119,7 +119,7 @@ class HTMLBuilder
|
||||||
|
|
||||||
// Ricorsione
|
// Ricorsione
|
||||||
if ($depth < self::$max_recursion) {
|
if ($depth < self::$max_recursion) {
|
||||||
$result = self::replace($result, $depth++);
|
$result = self::replace($result, $depth + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = str_replace($value, !empty($result) ? $result : $value, $html);
|
$html = str_replace($value, !empty($result) ? $result : $value, $html);
|
||||||
|
|
Loading…
Reference in New Issue