MDL-76483 core: Handle default value for get_docs_url()

This commit is contained in:
Andrew Nicols 2022-11-25 21:09:02 +08:00
parent 15d4ea81e0
commit 6eccbc7af5

View File

@ -629,6 +629,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://') {