mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-76483 core: Handle default value for get_docs_url()
This commit is contained in:
parent
5c96f74a06
commit
a8bcb23134
@ -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