diff --git a/admin/main.php b/admin/main.php index 86260a2..8f3a7e5 100755 --- a/admin/main.php +++ b/admin/main.php @@ -97,8 +97,17 @@ function main() { utils_redirect($url); } + // register all Smarty modifier functions used by the admin templates $smarty->registerPlugin('modifier', 'action_link', 'admin_filter_action'); $smarty->registerPlugin('modifier', 'cmd_link', 'admin_filter_command'); + $smarty->registerPlugin('modifier', 'date', 'date'); + $smarty->registerPlugin('modifier', 'entry_idtotime', 'entry_idtotime'); + $smarty->registerPlugin('modifier', 'in_array', 'in_array'); + $smarty->registerPlugin('modifier', 'htmlspecialchars', 'htmlspecialchars'); + $smarty->registerPlugin('modifier', 'plugin_getinfo', 'plugin_getinfo'); + $smarty->registerPlugin('modifier', 'sprintf', 'sprintf'); + $smarty->registerPlugin('modifier', 'wp_specialchars', 'wp_specialchars'); + $smarty->registerPlugin('modifier', 'wptexturize', 'wptexturize'); } // smarty tag diff --git a/fp-includes/fp-smartyplugins/function.list_categories.php b/fp-includes/fp-smartyplugins/function.list_categories.php index 507c369..741c417 100644 --- a/fp-includes/fp-smartyplugins/function.list_categories.php +++ b/fp-includes/fp-smartyplugins/function.list_categories.php @@ -104,6 +104,9 @@ function do_print_categories_list(&$lines, &$indentstack, &$result, $params) { array_push($result, $ild); $cat_entry = $params ['selected']; + if (!is_array($cat_entry)) { + $cat_entry = array(); + } if (isset($params ['type']) && ($params ['type'] == 'form' || $params ['type'] == 'check')) { $string = '