MDL-77745 core_question: Show question version in info box
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user