mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-37896 qtype_essay: correct PARAM_CLEANHTML -> PARAM_RAW.
It turns out that you should almost never use PARAM_CLEANHTML.
This commit is contained in:
parent
6319737865
commit
2d2018abda
3 changed files with 9 additions and 7 deletions
|
@ -55,9 +55,7 @@ class qtype_essay_question extends question_with_responses {
|
|||
|
||||
public function get_expected_data() {
|
||||
if ($this->responseformat == 'editorfilepicker') {
|
||||
$expecteddata = array('answer' => question_attempt::PARAM_CLEANHTML_FILES);
|
||||
} else if ($this->responseformat == 'editor') {
|
||||
$expecteddata = array('answer' => PARAM_CLEANHTML);
|
||||
$expecteddata = array('answer' => question_attempt::PARAM_RAW_FILES);
|
||||
} else {
|
||||
$expecteddata = array('answer' => PARAM_RAW);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue