Correzione contatore di ricorsione

This commit is contained in:
Thomas Zilio 2018-02-16 09:41:28 +01:00
parent d4fd77859b
commit 6ecee8cb5e
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ class HTMLBuilder
// Ricorsione
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);
@ -119,7 +119,7 @@ class HTMLBuilder
// Ricorsione
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);