mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Improve error output of install_from_xmldb_file(). Part of MDL-7262
Merged from MOODLE_17_STABLE
This commit is contained in:
parent
68513b30de
commit
93f98abdb9
@ -530,6 +530,12 @@ function install_from_xmldb_file($file) {
|
||||
|
||||
$loaded = $xmldb_file->loadXMLStructure();
|
||||
if (!$loaded || !$xmldb_file->isLoaded()) {
|
||||
/// Show info about the error if we can find it
|
||||
if ($structure =& $xmldb_file->getStructure()) {
|
||||
if ($errors = $structure->getAllErrors()) {
|
||||
notify('Errors found in XMLDB file: '. implode (', ', $errors));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user