diff --git a/include/php_setup.inc b/include/php_setup.inc
index 987bce2b65996b8c3a8508f1fee222f5ac020b40..843be0c5efc54fa49ec23ab274e485d428a96d2c 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 = '';