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
+4
View File
@@ -52,6 +52,10 @@ class core_phpunit_basic_testcase extends basic_testcase {
*/
public function test_bootstrap() {
global $CFG;
// The httpswwwroot has been deprecated, we keep it as an alias for backwards compatibility with plugins only.
$this->assertTrue(isset($CFG->httpswwwroot));
$this->assertEquals($CFG->httpswwwroot, $CFG->wwwroot);
$this->assertEquals($CFG->prefix, $CFG->phpunit_prefix);
}