diff options
| author | Simon Wisselink <wisskid@users.noreply.github.com> | 2024-02-24 23:36:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-24 23:36:06 +0100 |
| commit | 2b0ba0eabcd0da5ee97326e81d293de03e3c6a37 (patch) | |
| tree | a8cde9a850d0fee1105108ca05a2985607ba0c7a /docs | |
| parent | 66edb56911ed111b42e8b4615b75655e3656b173 (diff) | |
| download | smarty-2b0ba0eabcd0da5ee97326e81d293de03e3c6a37.tar.gz smarty-2b0ba0eabcd0da5ee97326e81d293de03e3c6a37.tar.bz2 smarty-2b0ba0eabcd0da5ee97326e81d293de03e3c6a37.zip | |
Add template path to CompilerException to enable rich debug features (#936)
* Add template path to CompilerException to enable rich debug features
Fixes #935
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/upgrading.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/upgrading.md b/docs/upgrading.md index b538ec9e..ef9cc4c9 100644 --- a/docs/upgrading.md +++ b/docs/upgrading.md @@ -117,6 +117,7 @@ The following constants have been removed to prevent global side effects. - Smarty now always runs in multibyte mode. Make sure you use the [PHP multibyte extension](https://www.php.net/manual/en/book.mbstring.php) in production for optimal performance. - Generated `<script>` tags lo longer have deprecated `type="text/javascript"` or `language="Javascript"` attributes - Smarty will throw a compiler exception instead of silently ignoring a modifier on a function call, like this: `{include|dot:"x-template-id" file="included.dot.tpl"}` +- The ::getFile() method of a CompilerException will now return the full path of the template being compiled, if possible. This used to be 'file:relative_dir/filename.tpl'. ## Upgrading from v3 to v4 |
