MDL-57259 external: fix page url debug in fragment loading
authorRyan Wyllie <ryan@moodle.com>
Mon, 24 Jul 2017 06:56:29 +0000 (06:56 +0000)
committerRyan Wyllie <ryan@moodle.com>
Wed, 2 Aug 2017 04:47:41 +0000 (04:47 +0000)
lib/external/externallib.php

index e038b4c..6721d2a 100644 (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();