From ee7e6d4090f45ffac3f8743c8d590d9773d2322e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be>
Date: Mon, 7 May 2018 09:50:40 +0200
Subject: [PATCH] :ambulance: fix(smarty) Removed unused attributes from smarty
 plugins

issue #5831
---
 contrib/smarty/plugins/block.render.php      | 2 +-
 contrib/smarty/plugins/function.filePath.php | 2 +-
 contrib/smarty/plugins/function.iconPath.php | 2 +-
 contrib/smarty/plugins/function.msgPool.php  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/contrib/smarty/plugins/block.render.php b/contrib/smarty/plugins/block.render.php
index 67b988d0c..892dff297 100644
--- a/contrib/smarty/plugins/block.render.php
+++ b/contrib/smarty/plugins/block.render.php
@@ -19,7 +19,7 @@
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */
 
-function smarty_block_render($params, $text, &$smarty)
+function smarty_block_render($params, $text)
 {
   /* Skip closing tag </render> */
   if (empty($text)) {
diff --git a/contrib/smarty/plugins/function.filePath.php b/contrib/smarty/plugins/function.filePath.php
index 55d06ce1b..315e00a29 100644
--- a/contrib/smarty/plugins/function.filePath.php
+++ b/contrib/smarty/plugins/function.filePath.php
@@ -17,7 +17,7 @@
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */
-function smarty_function_filePath($params, &$smarty)
+function smarty_function_filePath($params, Smarty_Internal_Template $smarty)
 {
   $config = session::global_get('config');
   $default_theme = 'breezy';
diff --git a/contrib/smarty/plugins/function.iconPath.php b/contrib/smarty/plugins/function.iconPath.php
index 1c7fe704a..53a648b8f 100644
--- a/contrib/smarty/plugins/function.iconPath.php
+++ b/contrib/smarty/plugins/function.iconPath.php
@@ -17,7 +17,7 @@
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */
-function smarty_function_iconPath($params, &$smarty)
+function smarty_function_iconPath($params)
 {
   $config = session::global_get('config');
 
diff --git a/contrib/smarty/plugins/function.msgPool.php b/contrib/smarty/plugins/function.msgPool.php
index 69945cc6a..e179c605c 100644
--- a/contrib/smarty/plugins/function.msgPool.php
+++ b/contrib/smarty/plugins/function.msgPool.php
@@ -18,7 +18,7 @@
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 */
-function smarty_function_msgPool($params, &$smarty)
+function smarty_function_msgPool($params)
 {
   if (class_available('msgPool') && isset($params['type'])) {
     $parameter = array();
-- 
GitLab