Skip to content

Commit df04a76

Browse files
authored
Replace use of deprecated date function in setup (#16627)
### What does it do? Replace use of date function in smarty footer tpl in setup with smarty.now|date_format ### Why is it needed? Use of the date function in smarty templates triggers a deprecated warning ### How to test Run setup on PHP 8.3 and ensure deprecated warning does not appear ### Related issue(s)/PR(s) none
1 parent 1a02607 commit df04a76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/templates/footer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<footer>
77
<div class="wrapper">
88
<div class="copyrite">
9-
<p>{$_lang.modx_footer1|replace:'[[+current_year]]':{'Y'|date}}</p>
9+
<p>{$_lang.modx_footer1|replace:'[[+current_year]]':{$smarty.now|date_format:"%Y"}}</p>
1010
</div>
1111
<div class="copyrite_info">
1212
<p>{$_lang.modx_footer2}</p>

0 commit comments

Comments
 (0)