mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Robustness on an optional variable
This commit is contained in:
parent
66a51452d9
commit
e4576482d5
@ -788,8 +788,9 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta=
|
||||
}
|
||||
}
|
||||
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1";
|
||||
if ($CFG->xml_doctype_extra)
|
||||
if (!empty($CFG->xml_doctype_extra)) {
|
||||
echo " plus $CFG->xml_doctype_extra";
|
||||
}
|
||||
echo "//" . strtoupper($currentlanguage) . "\" \"$CFG->xml_dtd\">\n";
|
||||
$direction = " xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"$currentlanguage\" $direction";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user