From: David Mudrak Date: Mon, 4 Jan 2010 18:28:36 +0000 (+0000) Subject: workshop in reply to MDL-20204 - new output API in example submissions code X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0f6bf8c93de461f7d9fbc56bccaa6bbd02c29c09;p=moodle.git workshop in reply to MDL-20204 - new output API in example submissions code --- diff --git a/mod/workshop/exassessment.php b/mod/workshop/exassessment.php index 55120ac9b3..b586874f04 100644 --- a/mod/workshop/exassessment.php +++ b/mod/workshop/exassessment.php @@ -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); diff --git a/mod/workshop/excompare.php b/mod/workshop/excompare.php index 4d019b0d3f..6366cc2380 100644 --- a/mod/workshop/excompare.php +++ b/mod/workshop/excompare.php @@ -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(); diff --git a/mod/workshop/exsubmission.php b/mod/workshop/exsubmission.php index e146966dde..44ce039094 100644 --- a/mod/workshop/exsubmission.php +++ b/mod/workshop/exsubmission.php @@ -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