From 9fd4026a97b81188a9fae17ff8775a01ca01a95f Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Wed, 3 Jan 2024 15:26:21 +0100 Subject: [PATCH] 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') );