Skip to content

Commit

Permalink
Replace use of deprecated date function in setup (#16627)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
opengeek authored Oct 8, 2024
1 parent 1a02607 commit df04a76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/templates/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<footer>
<div class="wrapper">
<div class="copyrite">
<p>{$_lang.modx_footer1|replace:'[[+current_year]]':{'Y'|date}}</p>
<p>{$_lang.modx_footer1|replace:'[[+current_year]]':{$smarty.now|date_format:"%Y"}}</p>
</div>
<div class="copyrite_info">
<p>{$_lang.modx_footer2}</p>
Expand Down

0 comments on commit df04a76

Please sign in to comment.