mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-83038' of https://github.com/paulholden/moodle
This commit is contained in:
commit
57ab215ac1
@ -70,6 +70,9 @@ class get_edit_grading_page_data extends external_api {
|
||||
require_capability('mod/quiz:manage', $quizobj->get_context());
|
||||
self::validate_context($quizobj->get_context());
|
||||
|
||||
// Set dummy URL to stop debugging in the renderer (TODO: remove as part of MDL-76728).
|
||||
$PAGE->set_url('/');
|
||||
|
||||
$structure = $quizobj->get_structure();
|
||||
$editpage = new edit_grading_page($structure);
|
||||
return json_encode($editpage->export_for_template($PAGE->get_renderer('core')));
|
||||
|
Loading…
x
Reference in New Issue
Block a user