From 1c0e5b34bcb8f3fc2e3d6ee6a0d7925fb241ada9 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 31 May 2024 11:14:47 +0200 Subject: [PATCH] (cp 158e99573) Revert "issue #2155 more PHP functions {end, key} for SmartPocket" This reverts commit d2941d71c22b1f3934db26336d68c70ca8cead73. Using end/key in Smarty template (SmartPocket navigation_bar.tpl) actually does not work. SmartPocket now (14.4.0.2) uses a dedicated template variable to know the total number of pages. --- include/template.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/template.class.php b/include/template.class.php index b3172e355..b08a8c15e 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -121,8 +121,6 @@ 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') );