Merge branch 'MDL-27737_2.0' of git://github.com/timhunt/moodle into MOODLE_20_STABLE

This commit is contained in:
Sam Hemelryk
2011-06-08 13:52:39 +08:00
+1 -1
View File
@@ -71,7 +71,7 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
JOIN {question} q ON qno.question = q.id');
foreach ($rs as $record) {
if ($CFG->texteditors !== 'textarea' && $record->oldquestiontextformat == FORMAT_MOODLE) {
$record->instructions = text_to_html($record->questiontext, false, false, true);
$record->instructions = text_to_html($record->instructions, false, false, true);
$record->instructionsformat = FORMAT_HTML;
} else {
$record->instructionsformat = $record->oldquestiontextformat;