From de03c0798c1a9f23c3b7dfc3f251da2328f13015 Mon Sep 17 00:00:00 2001
From: Thibault Dockx <thibault.dockx@fusiondirectory.org>
Date: Tue, 7 Jan 2025 16:18:48 +0000
Subject: [PATCH] :ambulance: Fix deprecated smarty (1)

Smarty 1
---
 include/php_setup.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/php_setup.inc b/include/php_setup.inc
index 987bce2b6..843be0c5e 100755
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
@@ -331,7 +331,9 @@ $smarty->assign('js_files', []);
 
 $smarty->registerPlugin('modifier', 'base64_encode', 'base64_encode');
 
-$smarty->php_handling = Smarty::PHP_REMOVE;
+$smarty->allow_php = false;
+# Remove with above in smarty 4
+# $smarty->php_handling = Smarty::PHP_REMOVE;
 
 /* Check for SSL connection */
 $ssl = '';
-- 
GitLab