MDL-32316 feedback: fix tem type label does honor trusted text

This commit is contained in:
Andreas Grabs 2012-04-10 00:26:08 +02:00
parent 9ad535c550
commit bf4fb3b317
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class feedback_label_form extends feedback_item_form {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('editor', 'presentation_editor', '', null, $presentationoptions);
$mform->setType('presentation_editor', PARAM_CLEANHTML);
$mform->setType('presentation_editor', PARAM_RAW);
parent::definition();
$this->set_data($item);

View File

@ -167,7 +167,8 @@ class feedback_item_label extends feedback_item_base {
$filearea,
$item->id);
echo format_text($output, FORMAT_HTML, array('overflowdiv'=>true));
$formatoptions = array('overflowdiv'=>true, 'trusted'=>$CFG->enabletrusttext);
echo format_text($output, FORMAT_HTML, $formatoptions);
}
/**