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