Merge branch 'MDL-76483-400' of https://github.com/andrewnicols/moodle into MOODLE_400_STABLE

This commit is contained in:
Jun Pataleta
2022-12-01 09:02:48 +03:00
committed by Ilya Tregubov
+3
View File
@@ -646,6 +646,9 @@ function generate_uuid() {
*/
function get_docs_url($path = null) {
global $CFG;
if ($path === null) {
$path = '';
}
// Absolute URLs are used unmodified.
if (substr($path, 0, 7) === 'http://' || substr($path, 0, 8) === 'https://') {