Skip to content

Commit

Permalink
MDL-61366 setuplib: safely construct the ajax renderer when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Feb 6, 2018
1 parent 7517f9e commit bfe824d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setuplib.php
Expand Up @@ -387,7 +387,7 @@ function default_exception_handler($ex) {
if (AJAX_SCRIPT) {
// If we are in an AJAX script we don't want to use PREFERRED_RENDERER_TARGET.
// Because we know we will want to use ajax format.
$renderer = $PAGE->get_renderer('core', null, 'ajax');
$renderer = new core_renderer_ajax($PAGE, 'ajax');
} else {
$renderer = $OUTPUT;
}
Expand Down

0 comments on commit bfe824d

Please sign in to comment.