Skip to content

Conversation

@AbcAeffchen
Copy link

compileAll() has two issues that get fixed with this commit:

  1. $force_compile is ignored since it is applied to a cloned instance of Smarty that then is not used.
  2. The $max_errors variable behaves strange as the function stops executing as soon $max_errors is reached. However, the name suggests that $max_errors is the maximum number of acceptable errors (defaults to null meaning unlimited). When called with $max_errors = 0, the function compiles only the first template and then stops with "too many errors" and a total error count of zero.

compileAll() has two issues that get fixed with this commit:
1. `$force_compile` is ignored since it is applied to a cloned instance of Smarty that then is not used.
2. The `$max_errors` variable behaves strange as the function stops executing as soon $max_errors is reached. However, the name suggests that `$max_errors` is the maximum number of acceptable errors (defaults to `null` meaning unlimited). When called with `$max_errors = 0`, the function compiles only the first template and then stops with "too many errors" and a total error count of zero.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant