From d0253cf657503d27012dc41d976e5a768c9869ab Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Sat, 29 Apr 2006 23:11:56 +0000 Subject: [PATCH] Fix template configurator --- include/functions_entries.inc.php | 2 +- include/functions_smarty.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index cc0ec53..d4f7c07 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -1089,7 +1089,7 @@ function serendipity_updertEntry($entry) { } /* WYSIWYG-editor inserts empty ' ' for extended body; this is reversed here */ - if (isset($entry['extended']) && (trim($entry['extended']) == '' || trim($entry['extended']) == '
' || trim($entry['extended']) == '

')) { + if (isset($entry['extended']) && (trim($entry['extended']) == '' || trim($entry['extended']) == '
' || trim($entry['extended']) == '

' || str_replace(array("\r", "\n", "\t", "\0", "
", "

", "

", "
"), array('', '', '', '', '', '', '', ''), trim($entry['extended'])))) { $entry['extended'] = ''; } diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index 8b18642..c676097 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -613,7 +613,7 @@ function &serendipity_replaceSmartyVars(&$tpl_source, &$smarty) { * @return null */ function serendipity_smarty_init($vars = array()) { - global $serendipity; + global $serendipity, $template_config; if (!isset($serendipity['smarty'])) { @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/'); -- 2.39.5