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

Update cancel URL for tidy page.

parent a239d09c
Branches
No related tags found
No related merge requests found
......@@ -51,11 +51,7 @@ $PAGE->set_pagelayout('admin');
require_login();
// The URL back to the preview page.
if (stack_determine_moodle_version() < 400) {
$returnurl = question_preview_url($questionid, null, null, null, null, $context);
} else {
$returnurl = qbank_previewquestion\helper::question_preview_url($questionid, null, null, null, null, $context);
}
$returnurl = new moodle_url('/question/type/stack/questiontestrun.php', $urlparams);
// Create the question usage we will use.
$quba = question_engine::make_questions_usage_by_activity('qtype_stack', $context);
$quba->set_preferred_behaviour('adaptive');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment