mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 14:58:42 +02:00
MDL-14620 - fix link to repository and tidy up using $CFG vars - missed a bit
This commit is contained in:
parent
0e8ae38e98
commit
ef7f7453c9
@ -63,7 +63,7 @@ function scorm_get_manifest($blocks,$scoes) {
|
||||
}
|
||||
break;
|
||||
case 'ORGANIZATIONS':
|
||||
if (!isset($scoes->defaultorg)) {
|
||||
if (!isset($scoes->defaultorg) && isset($block['attrs']['DEFAULT'])) {
|
||||
$scoes->defaultorg = $block['attrs']['DEFAULT'];
|
||||
}
|
||||
$scoes = scorm_get_manifest($block['children'],$scoes);
|
||||
@ -489,7 +489,9 @@ function scorm_parse_scorm($pkgdir,$scormid) {
|
||||
$newitem->organization = $organization;
|
||||
$standarddatas = array('parent', 'identifier', 'launch', 'scormtype', 'title');
|
||||
foreach ($standarddatas as $standarddata) {
|
||||
$newitem->$standarddata = $item->$standarddata;
|
||||
if (isset($item->$standarddata)) {
|
||||
$newitem->$standarddata = $item->$standarddata;
|
||||
}
|
||||
}
|
||||
|
||||
// Insert the new SCO, and retain the link between the old and new for later adjustment
|
||||
|
Loading…
x
Reference in New Issue
Block a user