Merge branch 'MDL-57259-master' of git://github.com/ryanwyllie/moodle

This commit is contained in:
Andrew Nicols
2017-08-02 13:39:23 +08:00
+2
View File
@@ -404,6 +404,8 @@ class core_external extends external_api {
self::validate_context($context);
$arguments['context'] = $context;
// Hack alert: Set a default URL to stop the annoying debug.
$PAGE->set_url('/');
// Hack alert: Forcing bootstrap_renderer to initiate moodle page.
$OUTPUT->header();