workshop in reply to MDL-20204 - new output API in example submissions code

This commit is contained in:
David Mudrak
2010-01-04 18:28:36 +00:00
parent cbf87967c7
commit 0f6bf8c93d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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