mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-76483 core: Handle default value for get_docs_url()
This commit is contained in:
parent
15d4ea81e0
commit
6eccbc7af5
1 changed files with 3 additions and 0 deletions
|
@ -629,6 +629,9 @@ function generate_uuid() {
|
||||||
*/
|
*/
|
||||||
function get_docs_url($path = null) {
|
function get_docs_url($path = null) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
if ($path === null) {
|
||||||
|
$path = '';
|
||||||
|
}
|
||||||
|
|
||||||
// Absolute URLs are used unmodified.
|
// Absolute URLs are used unmodified.
|
||||||
if (substr($path, 0, 7) === 'http://' || substr($path, 0, 8) === 'https://') {
|
if (substr($path, 0, 7) === 'http://' || substr($path, 0, 8) === 'https://') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue