mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-61366' of git://github.com/timhunt/moodle
This commit is contained in:
commit
b6c2829745
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ function default_exception_handler($ex) {
|
||||||
if (AJAX_SCRIPT) {
|
if (AJAX_SCRIPT) {
|
||||||
// If we are in an AJAX script we don't want to use PREFERRED_RENDERER_TARGET.
|
// 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.
|
// 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 {
|
} else {
|
||||||
$renderer = $OUTPUT;
|
$renderer = $OUTPUT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue