[svn r12280] the scorm packages are now imported with their title.

skala
Eric Marguin 19 years ago
parent f09d454509
commit d50573fa1e
  1. 3
      main/newscorm/scormOrganization.class.php

@ -105,10 +105,9 @@ class scormOrganization {
break; break;
case 'title': case 'title':
$tmp_children = $child->childNodes; $tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent != '' )
if($tmp_children->length==1 and $child->firstChild->nodeValue != '' ) if($tmp_children->length==1 and $child->firstChild->nodeValue != '' )
{ {
$this->title = $tmp_children->firstChild->nodeValue; $this->title = $child->firstChild->nodeValue;
} }
break; break;
} }

Loading…
Cancel
Save