summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wisselink <s.wisselink@iwink.nl>2024-12-28 17:40:25 +0100
committerSimon Wisselink <s.wisselink@iwink.nl>2024-12-28 17:40:25 +0100
commit5d1ea5806a10071fdb6af0fa945c8e3f58e033c4 (patch)
treebf3b40cb02534c911d44c54f55ec2c1ca1df78ed
parentab247c723b58743f3ba9fe95dc13e91e11d9fc97 (diff)
downloadsmarty-5d1ea5806a10071fdb6af0fa945c8e3f58e033c4.tar.gz
smarty-5d1ea5806a10071fdb6af0fa945c8e3f58e033c4.tar.bz2
smarty-5d1ea5806a10071fdb6af0fa945c8e3f58e033c4.zip
change SMARTY_VERSION to $smarty.version.
Fixes #1073
-rw-r--r--changelog/1073.md1
-rw-r--r--src/debug.tpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog/1073.md b/changelog/1073.md
new file mode 100644
index 00000000..0b30594d
--- /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 3dd25bf3..ab093581 100644
--- a/src/debug.tpl
+++ b/src/debug.tpl
@@ -108,7 +108,7 @@
</head>
<body>
- <h1>Smarty {\Smarty\Smarty::SMARTY_VERSION} Debug Console
+ <h1>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}</h1>
{if !empty($template_data)}