-
Sub-task
-
Resolution: Won't Do
-
Minor
-
None
-
2.0
-
None
-
MOODLE_20_STABLE
The problem is that the get_comments() is called from an ajax script, but the result is supposed to be rendered in html page - so in the ajax script we should do:
$renderer = $PAGE->get_renderer('core', null, RENDERER_TARGET_GENERAL) and then pass it to the get_comments() as parameter.