MDL-6635 Template fields filtered twice

This commit is contained in:
skodak 2006-12-11 09:35:27 +00:00
parent a3318c36b8
commit 5023c3abc8

View file

@ -854,13 +854,9 @@ function data_print_template($template, $records, $data, $search='',$page=0, $re
///actual replacement of the tags
$newtext = str_ireplace($patterns, $replacement, $data->{$template});
$options->para=false;
$options->noclean=true;
if ($return) {
return format_text($newtext, FORMAT_HTML, $options);
} else {
echo format_text($newtext, FORMAT_HTML, $options);
}
/// no more html formatting and filtering - see MDL-6635
echo $newtext;
/**********************************
* Printing Ratings Form *