From 6bac7d0815df10f6e44a45e49874327e30c3d0e6 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 10 Jan 2024 14:27:55 +0100 Subject: [PATCH] (cp 9fd4026) issue #1845 register another PHP function(stristr) Used in new PEM --- include/template.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/template.class.php b/include/template.class.php index 2d40e52a1..6954f5f36 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -117,6 +117,7 @@ class Template $this->smarty->registerPlugin('modifier', 'in_array', 'in_array'); $this->smarty->registerPlugin('modifier', 'ucfirst', 'ucfirst'); $this->smarty->registerPlugin('modifier', 'strstr', 'strstr'); + $this->smarty->registerPlugin('modifier', 'stristr', 'stristr'); $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') );