From 5d1ea5806a10071fdb6af0fa945c8e3f58e033c4 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Sat, 28 Dec 2024 17:40:25 +0100 Subject: [PATCH] change SMARTY_VERSION to $smarty.version. Fixes #1073 --- changelog/1073.md | 1 + src/debug.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/1073.md diff --git a/changelog/1073.md b/changelog/1073.md new file mode 100644 index 000000000..0b30594dd --- /dev/null +++ b/changelog/1073.md @@ -0,0 +1 @@ +- Replace SMARTY_VERSION constant with $smarty.version in debug.tpl [#1073](https://github.com/smarty-php/smarty/issues/1073) diff --git a/src/debug.tpl b/src/debug.tpl index 3dd25bf37..ab093581d 100644 --- a/src/debug.tpl +++ b/src/debug.tpl @@ -108,7 +108,7 @@ -

Smarty {\Smarty\Smarty::SMARTY_VERSION} Debug Console +

Smarty {$smarty.version} Debug Console - {if isset($template_name)}{$template_name|debug_print_var nofilter} {/if}{if !empty($template_data)}Total Time {$execution_time|string_format:"%.5f"}{/if}

{if !empty($template_data)}