From c88ca1ed0fa74e4e21d237eedfc39cab86c1b0a9 Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Mon, 7 Aug 2023 17:12:59 +0200 Subject: [PATCH] issue #1845 register another PHP function(strstr) --- include/template.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/template.class.php b/include/template.class.php index 555c132dc..baf108ab6 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -116,6 +116,7 @@ class Template $this->smarty->registerPlugin('modifier', 'stripslashes', 'stripslashes'); $this->smarty->registerPlugin('modifier', 'in_array', 'in_array'); $this->smarty->registerPlugin('modifier', 'ucfirst', 'ucfirst'); + $this->smarty->registerPlugin('modifier', 'strstr', 'strstr'); $this->smarty->registerPlugin('modifier', 'explode', array('Template', 'mod_explode') ); $this->smarty->registerPlugin('modifier', 'ternary', array('Template', 'mod_ternary') ); $this->smarty->registerPlugin('modifier', 'get_extent', array($this, 'get_extent') );