diff --git a/contrib/smarty/plugins/block.render.php b/contrib/smarty/plugins/block.render.php
index 67b988d0cd74bee9b9fc06e1a9ae6b770947b0dc..892dff297b77371f1b942777ab41d00237963121 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 55d06ce1b851c5c3a69d33c69122e95904af89dc..315e00a29e87c4ab8f4d992db3af5e47d5e260dc 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 1c7fe704a3aae4169775b0b6b2c60962759759b4..53a648b8f246958b6ecf83245ec9124f59bd18a8 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 69945cc6ab1473592479755e94d9ee614c534665..e179c605ce3162f6b451371aab4d6e18f790877b 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();