mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-76483 core: Handle default value for get_docs_url()
This commit is contained in:
parent
15d4ea81e0
commit
6eccbc7af5
@ -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://') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user