From ac98cfdcc27f3763e40d5ead5d3daa60f465e926 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 24 Apr 2024 16:27:31 +0200 Subject: [PATCH] fixes #2155 register more PHP functions for templates --- include/template.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/template.class.php b/include/template.class.php index 6954f5f36..b08a8c15e 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -118,6 +118,9 @@ class Template $this->smarty->registerPlugin('modifier', 'ucfirst', 'ucfirst'); $this->smarty->registerPlugin('modifier', 'strstr', 'strstr'); $this->smarty->registerPlugin('modifier', 'stristr', 'stristr'); + $this->smarty->registerPlugin('modifier', 'trim', 'trim'); + $this->smarty->registerPlugin('modifier', 'md5', 'md5'); + $this->smarty->registerPlugin('modifier', 'strtolower', 'strtolower'); $this->smarty->registerPlugin('modifier', 'str_ireplace', 'str_ireplace'); $this->smarty->registerPlugin('modifier', 'explode', array('Template', 'mod_explode') ); $this->smarty->registerPlugin('modifier', 'ternary', array('Template', 'mod_ternary') );