workshop in reply to MDL-20204 - new output API in example submissions code
This commit is contained in:
@@ -91,7 +91,7 @@ if ($mform->is_cancelled()) {
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading(get_string('assessedexample', 'workshop'), 2);
|
||||
|
||||
$wsoutput = $PAGE->theme->get_renderer('mod_workshop', $PAGE); // workshop renderer
|
||||
$wsoutput = $PAGE->get_renderer('mod_workshop'); // workshop renderer
|
||||
$example = $workshop->get_example_by_id($example->id); // reload so can be passed to the renderer
|
||||
echo $wsoutput->example_full($example);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ if ($canmanage) {
|
||||
$PAGE->set_title($workshop->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->navbar->add(get_string('examplecomparing', 'workshop'));
|
||||
$wsoutput = $PAGE->theme->get_renderer('mod_workshop', $PAGE);
|
||||
$wsoutput = $PAGE->get_renderer('mod_workshop');
|
||||
|
||||
// Output starts here
|
||||
echo $OUTPUT->header();
|
||||
|
||||
@@ -177,7 +177,7 @@ if ($example->id) {
|
||||
echo $OUTPUT->confirm(get_string('assessmentreferenceneeded', 'workshop'),
|
||||
new moodle_url($PAGE->url, array('assess' => 1)), $workshop->view_url());
|
||||
}
|
||||
$wsoutput = $PAGE->theme->get_renderer('mod_workshop', $PAGE);
|
||||
$wsoutput = $PAGE->get_renderer('mod_workshop');
|
||||
echo $wsoutput->example_full($example, true);
|
||||
}
|
||||
// ...with an option to edit or remove it
|
||||
|
||||
Reference in New Issue
Block a user