From ffe93c92fc12251c5ee95d260575f583e6f5c083 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 10 Dec 2014 12:01:15 +0100 Subject: [PATCH] allow php class_exists in smarty security and better 0ffd02c Rferences #245 --- include/functions_entries_admin.inc.php | 1 - include/serendipity_smarty_class.inc.php | 4 ++-- templates/2k11/admin/entries.tpl | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index d97237b3..c66e0176 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -147,7 +147,6 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr serendipity_smarty_init(); $serendipity['smarty']->registerPlugin('modifier', 'emit_htmlarea_code', 'serendipity_emit_htmlarea_code'); $serendipity['smarty']->assign('admin_view', 'entryform'); - $serendipity['smarty']->assign('has_freetag', class_exists('serendipity_event_freetag')); serendipity_plugin_api::hook_event('backend_entryform_smarty', $template_vars); $serendipity['smarty']->assignByRef('entry_vars', $template_vars); return serendipity_smarty_show($template_vars['entry_template']); diff --git a/include/serendipity_smarty_class.inc.php b/include/serendipity_smarty_class.inc.php index e0e98eb8..74dc07b4 100644 --- a/include/serendipity_smarty_class.inc.php +++ b/include/serendipity_smarty_class.inc.php @@ -1,5 +1,5 @@ {$CONST.CATEGORIES} - {if $has_freetag} + {if class_exists('serendipity_event_freetag')} {$CONST.PLUGIN_EVENT_FREETAG_MANAGETAGS} {/if}