MDL-77745 core_question: Show question version in info box

This commit is contained in:
Mark Johnson
2023-07-13 11:11:43 +01:00
parent ef93325f27
commit ab8a4dd8cb
13 changed files with 257 additions and 11 deletions
+4
View File
@@ -23,6 +23,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
use core_question\output\question_version_info;
defined('MOODLE_INTERNAL') || die();
@@ -145,6 +146,9 @@ class core_question_renderer extends plugin_renderer_base {
$output .= $this->mark_summary($qa, $behaviouroutput, $options);
$output .= $this->question_flag($qa, $options->flags);
$output .= $this->edit_question_link($qa, $options);
if ($options->versioninfo) {
$output .= $this->render(new question_version_info($qa->get_question(), true));
}
return $output;
}