MDL-67250 setup: Revert removal of the httpswwwroot setting

It is still used widely in the plugins that would stop working suddenly
without being warned via a debugging message. We must keep it forever as
an alias for the wwwroot.
This commit is contained in:
David Mudrák
2019-11-13 19:58:10 +01:00
parent 1633a6035d
commit 469d4b7f35
5 changed files with 10 additions and 2 deletions
+3
View File
@@ -534,6 +534,9 @@ global $FULLSCRIPT;
*/
global $SCRIPT;
// The httpswwwroot has been deprecated, we keep it as an alias for backwards compatibility with plugins only.
$CFG->httpswwwroot = $CFG->wwwroot;
require_once($CFG->libdir .'/setuplib.php'); // Functions that MUST be loaded first
if (NO_OUTPUT_BUFFERING) {