Skip to content
Snippets Groups Projects
Commit f691631c authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Working through recent changes.

parent 9dabad77
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,8 @@ foreach ($question->get_all_question_vars() as $key => $value) {
echo html_writer::end_tag('div');
// Display the question text.
// TODO why do we need this as well as the rendered view above?
// We need this as well as the rendered view above so that teachers can see the names of variables used.
// This helps when writing question tests using those variables to reflect randomization.
echo $OUTPUT->heading(get_string('questiontext', 'qtype_stack'), 3);
echo html_writer::tag('pre', $question->questiontext, array('class' => 'questiontext'));
......
......@@ -61,6 +61,7 @@ $PAGE->set_url('/question/type/stack/questiontestrun.php', $urlparams);
$PAGE->set_context($context);
$title = get_string('testingquestion', 'qtype_stack', format_string($question->name));
$PAGE->set_title($title);
// TODO fix page layout and navigation.
// Create the question usage we will use.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment