MDL-79863 qtype_ordering: qtype_ordering remove unnecessary stripslashes when formatting question text

This commit is contained in:
Gordon Bateson 2015-08-01 08:03:50 +09:00 committed by Mathew May
parent d7e47c39fb
commit ca0a5210be
2 changed files with 2 additions and 11 deletions

View File

@ -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
////////////////////////////////////////////////////////////////////

View File

@ -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