mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-30419: IMS package content missing when using Blackboard packages
This commit is contained in:
parent
b2b9890d08
commit
cb140ca0d6
1 changed files with 10 additions and 2 deletions
|
@ -153,9 +153,17 @@ function imscp_parse_manifestfile($manifestfilecontents) {
|
|||
$xmlbase = '';
|
||||
}
|
||||
if (!$href = $res->attributes->getNamedItem('href')) {
|
||||
continue;
|
||||
// If href not found look for <file href="help.htm"/>
|
||||
$fileresources = $res->getElementsByTagName('file');
|
||||
foreach ($fileresources as $file) {
|
||||
$href = $file->getAttribute('href');
|
||||
}
|
||||
if (empty($href)) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
$href = $href->nodeValue;
|
||||
}
|
||||
$href = $href->nodeValue;
|
||||
if (strpos($href, 'http://') !== 0) {
|
||||
$href = $xmlbase.$href;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue