MDL-20636 Previewing a truefalse question in deferred feedback mode now works.
[moodle.git] / question / type / questionbase.php
index 900529c..12ed53d 100644 (file)
@@ -197,7 +197,8 @@ abstract class question_definition {
      * @return qtype_renderer the renderer to use for outputting this question.
      */
     public function get_renderer() {
-        return renderer_factory::get_renderer('qtype_' . $this->qtype->name());
+        global $PAGE;
+        return $PAGE->get_renderer('qtype_' . $this->qtype->name());
     }
 
     /**