Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d509f80
)
MDL-57259 external: fix page url debug in fragment loading
author
Ryan Wyllie
<ryan@moodle.com>
Mon, 24 Jul 2017 06:56:29 +0000
(06:56 +0000)
committer
Ryan Wyllie
<ryan@moodle.com>
Wed, 2 Aug 2017 04:47:41 +0000
(
04:47
+0000)
lib/external/externallib.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/external/externallib.php
b/lib/external/externallib.php
index
e038b4c
..
6721d2a
100644
(file)
--- a/
lib/external/externallib.php
+++ b/
lib/external/externallib.php
@@
-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();