MDL-57259 external: fix page url debug in fragment loading

This commit is contained in:
Ryan Wyllie
2017-08-02 03:37:32 +00:00
parent d509f80c48
commit cacc04006f
+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();