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-18 12:20:43 +01:00
parent 571b061adc
commit d8d7e3b166

View File

@ -38,6 +38,9 @@ function login_validate() {
function main() { function main() {
global $lang, $smarty; global $lang, $smarty;
// Initialize modifier functions
$smarty->registerPlugin('modifier', 'wp_specialchars', 'wp_specialchars');
if (user_loggedin()) { if (user_loggedin()) {
if (isset($_GET ['do']) && ($_GET ['do'] == 'logout')) { if (isset($_GET ['do']) && ($_GET ['do'] == 'logout')) {