PHP functions used as modifier must be registered as modifier explicitly as of Smarty 4.3 - fixed.
This commit is contained in:
parent
f6ea8304cb
commit
571b061adc
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user