PHP functions used as modifier must be registered as modifier explicitly as of Smarty 4.3 - fixed.

This commit is contained in:
azett 2022-12-17 20:47:24 +01:00
parent f6ea8304cb
commit 571b061adc

View File

@ -119,6 +119,10 @@ function contact_form() {
function contact_main() {
global $smarty;
// Initialize modifier functions
$smarty->registerPlugin('modifier', 'stripslashes', 'stripslashes');
$smarty->registerPlugin('modifier', 'wp_specialchars', 'wp_specialchars');
$lang = lang_load('contact');
$smarty->assign('subject', $lang ['contact'] ['head']);