Skip to content

Commit

Permalink
MDL-57259 external: fix page url debug in fragment loading
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwyllie committed Aug 2, 2017
1 parent 8d826b1 commit d92ef7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/external/externallib.php
Expand Up @@ -321,6 +321,8 @@ public static function get_fragment($component, $callback, $contextid, $args = n
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();

Expand Down

0 comments on commit d92ef7d

Please sign in to comment.