PHP functions used as modifier must be registered as modifier explicitly as of Smarty 4.3 - fixed.
This commit is contained in:
parent
c2ce07be57
commit
2656ad68bc
@ -126,12 +126,12 @@ function index_main() {
|
||||
$module = 'index.tpl';
|
||||
$can404 = true;
|
||||
|
||||
if (!empty($fp_params ['entry'])) {
|
||||
// register all Smarty modifier functions used by the templates
|
||||
$smarty->registerPlugin('modifier', 'wp_specialchars', 'wp_specialchars');
|
||||
|
||||
if (!empty($fp_params ['entry'])) {
|
||||
index_singlepost($params, $module);
|
||||
} elseif (
|
||||
($explicit_req = $page = @$fp_params ['page']) || (empty($fp_params) && $page = @$fp_config ['general'] ['startpage']))
|
||||
{
|
||||
} elseif (($explicit_req = $page = @$fp_params ['page']) || (empty($fp_params) && $page = @$fp_config ['general'] ['startpage'])) {
|
||||
|
||||
index_staticpage($page, $explicit_req, $params, $module);
|
||||
return $module;
|
||||
|
Loading…
x
Reference in New Issue
Block a user