mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -64,7 +64,7 @@ class question_attempt {
|
|||
* @var string special value to indicate a response variable that is uploaded
|
||||
* files.
|
||||
*/
|
||||
const PARAM_CLEANHTML_FILES = 'paramcleanhtmlfiles';
|
||||
const PARAM_RAW_FILES = 'paramrawfiles';
|
||||
|
||||
/** @var integer if this attempts is stored in the question_attempts table, the id of that row. */
|
||||
protected $id = null;
|
||||
|
@ -888,8 +888,8 @@ class question_attempt {
|
|||
case self::PARAM_FILES:
|
||||
return $this->process_response_files($name, $name, $postdata);
|
||||
|
||||
case self::PARAM_CLEANHTML_FILES:
|
||||
$var = $this->get_submitted_var($name, PARAM_CLEANHTML, $postdata);
|
||||
case self::PARAM_RAW_FILES:
|
||||
$var = $this->get_submitted_var($name, PARAM_RAW, $postdata);
|
||||
return $this->process_response_files($name, $name . ':itemid', $postdata, $var);
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue