-
Bug
-
Resolution: Fixed
-
Major
-
2.2.9, 2.3.6, 2.4.3
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE
-
While testing David patch for MDL-39490 I observed debugger output like:
Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()
line 1184 of \lib\weblib.php: call to debugging()
line 302 of \question\type\questionbase.php: call to format_text()
line 89 of \question\type\match\question.php: call to question_definition->html_to_text()
line 284 of \question\behaviour\behaviourbase.php: call to qtype_match_question->get_question_summary()
line 898 of \question\engine\questionattempt.php: call to question_behaviour->get_question_summary()
line 464 of \question\engine\questionusage.php: call to question_attempt->start()
line 117 of \question\preview.php: call to question_usage_by_activity->start_question()
This is related to the function html_to_text in question/type/questionbase.php
public function html_to_text($text, $format) {
|
return html_to_text(format_text($text, $format, array('noclean' => true)), 0, false);
|
}
|
as stated in MDL-39490 it is not correct to call format_text with a text containing non rewritten urls with @@PLUGINFILE@@
- Discovered while testing
-
MDL-41003 Problems with Moodle XML import/export of calculated questions with shared datasets
-
- Closed
-
- has a non-specific relationship to
-
MDL-35053 Rewrite the PLUGINFILE urls in the question answer texts when viewing the answer text outside an attempt (e.g. offlinequiz previews)
-
- Closed
-
- has been marked as being related by
-
MDL-26186 Glossary autolinks not working in 2.6 dev
-
- Closed
-
-
MDL-41148 Make all images in the question XHTML export work
-
- Closed
-
-
MDL-39490 Help detect incorrect order of format_text() and rewriting pluginfile URL
-
- Closed
-
- is duplicated by
-
MDL-40140 Developer debug when previewing a restored quiz.
-
- Closed
-