]> git.mjollnir.org Git - moodle.git/commitdiff
workshop in reply to MDL-20204 - new output API in example submissions code
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:28:36 +0000 (18:28 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 18:28:36 +0000 (18:28 +0000)
mod/workshop/exassessment.php
mod/workshop/excompare.php
mod/workshop/exsubmission.php

index 55120ac9b3ed63a571a05b7de2fdc21e0254d4a8..b586874f040f239c44051366b17681cab252bf2e 100644 (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);
 
index 4d019b0d3ffac2541d0266d868ecd4c487d85c19..6366cc2380637df81f667d475adc948df605c617 100644 (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();
index e146966dde8626ed58f146ee05a3e985e4271a4b..44ce039094607233fd0e1f106843ec59323fecc3 100644 (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