mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-6635 Template fields filtered twice
This commit is contained in:
parent
a3318c36b8
commit
5023c3abc8
1 changed files with 3 additions and 7 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue