From e63627f50ebbf21e573faba7da1fa05f3b2fcbbb Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 25 Apr 2017 12:46:46 +0530 Subject: [PATCH] MDL-58701 libraries: Use pluginfile.php as rewrite url for web req. --- lib/externallib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/externallib.php b/lib/externallib.php index 571ea0ff745..7dd64ea141a 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -987,6 +987,8 @@ class external_settings { if ((AJAX_SCRIPT == false) && (CLI_SCRIPT == false) && (WS_SERVER == false)) { // For normal pages, the default should match the default for format_text. $this->filter = true; + // Use pluginfile.php for web requests. + $this->file = 'pluginfile.php'; } }