Browse Source

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

Eric Marguin 18 years ago
parent
commit
d50573fa1e
1 changed files with 1 additions and 2 deletions
  1. 1 2
      main/newscorm/scormOrganization.class.php

+ 1 - 2
main/newscorm/scormOrganization.class.php

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