From 168635fb6fca359016033e319a076bf0adb9268e Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 6 Feb 2018 12:09:43 +0000 Subject: [PATCH] MDL-61366 setuplib: safely construct the ajax renderer when needed --- lib/setuplib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setuplib.php b/lib/setuplib.php index 8bd7623c1f3..8e9e9e16d06 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -366,7 +366,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; }