mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-79863 qtype_ordering: qtype_ordering remove unnecessary stripslashes when formatting question text
This commit is contained in:
parent
d7e47c39fb
commit
ca0a5210be
@ -107,11 +107,6 @@ class qtype_ordering_question extends question_graded_automatically {
|
||||
$this->correctresponse = array_filter(explode(',', $step->get_qt_var('_correctresponse')));
|
||||
}
|
||||
|
||||
public function format_questiontext($qa) {
|
||||
$text = parent::format_questiontext($qa);
|
||||
return stripslashes($text);
|
||||
}
|
||||
|
||||
public function get_expected_data() {
|
||||
$name = $this->get_response_fieldname();
|
||||
return array($name => PARAM_TEXT);
|
||||
@ -172,10 +167,6 @@ class qtype_ordering_question extends question_graded_automatically {
|
||||
return array($fraction, question_state::graded_state_for_fraction($fraction));
|
||||
}
|
||||
|
||||
public function check_file_access($qa, $options, $component, $filearea, $args, $forcedownload) {
|
||||
return parent::check_file_access($qa, $options, $component, $filearea, $args, $forcedownload);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// custom methods
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -30,6 +30,6 @@ defined('MOODLE_INTERNAL') || die();
|
||||
$plugin->cron = 0;
|
||||
$plugin->component = 'qtype_ordering';
|
||||
$plugin->maturity = MATURITY_STABLE; // ALPHA=50, BETA=100, RC=150, STABLE=200
|
||||
$plugin->release = '2015-07-13 (23)';
|
||||
$plugin->version = 2015071323;
|
||||
$plugin->release = '2015-07-31 (24)';
|
||||
$plugin->version = 2015073124;
|
||||
$plugin->requires = 2010112400; // Moodle 2.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user