smarty 3/4 still calling smarty2 plugins, which errors for e.g. date_format
If I hack this this line to be $smartyDir = $pkgsDir . DIRECTORY_SEPARATOR . 'smarty4/vendor/smarty/smarty/libs' . DIRECTORY_SEPARATOR;
then it fixes it, but is this the right place to do this?
Aside: |date_format
was deprecated because it calls strftime which is deprecated in php 8, but it turns out in smarty 3/4 if you give it php date
format specifiers instead of strftime specifiers, without the %
, then it uses date
instead, which solves a couple problems, probably also the smarty rewrite problem for dates in searchkit.