From d2941d71c22b1f3934db26336d68c70ca8cead73 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 29 Apr 2024 09:48:55 +0200 Subject: [PATCH] issue #2155 more PHP functions {end, key} for SmartPocket --- include/template.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/template.class.php b/include/template.class.php index b08a8c15e..b3172e355 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -121,6 +121,8 @@ class Template $this->smarty->registerPlugin('modifier', 'trim', 'trim'); $this->smarty->registerPlugin('modifier', 'md5', 'md5'); $this->smarty->registerPlugin('modifier', 'strtolower', 'strtolower'); + $this->smarty->registerPlugin('modifier', 'end', 'end'); + $this->smarty->registerPlugin('modifier', 'key', 'key'); $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') );