Merge branch 'MDL-80823-wwwroot-redirect' of https://github.com/brendanheywood/moodle

This commit is contained in:
Huong Nguyen
2024-02-15 11:13:33 +07:00
+1 -1
View File
@@ -958,7 +958,7 @@ function initialise_fullme() {
throw new moodle_exception('requirecorrectaccess', 'error', '', null,
'You called ' . $calledurl .', you should have called ' . $correcturl);
}
redirect($CFG->wwwroot, get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 3);
redirect($CFG->wwwroot . $rurl['fullpath'], get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 3);
}
}