From 32a61698b88db029974dbcb0fd56a69f3f47ca10 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Wed, 17 Oct 2007 19:24:24 +0200 Subject: [PATCH] [svn r13517] Fixed SCORM field name "adlcp:prerequisites" --- main/newscorm/learnpath.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 3b3a5e73aa..fc1d256984 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -7229,8 +7229,8 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') //give a child element to the <item> element $my_title = $xmldoc->createElement('title',htmlspecialchars($item->get_title(),ENT_QUOTES)); $my_item->appendChild($my_title); - //give a child element <adlcp:prerequisite> to the <item> element - $my_prereqs = $xmldoc->createElement('adlcp:prerequisite',$item->get_prereq_string()); + //give a child element <adlcp:prerequisites> to the <item> element + $my_prereqs = $xmldoc->createElement('adlcp:prerequisites',$item->get_prereq_string()); $my_prereqs->setAttribute('type','aicc_script'); $my_item->appendChild($my_prereqs); //give a child element <adlcp:maxtimeallowed> to the <item> element - not yet supported @@ -7477,8 +7477,8 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') //give a child element <title> to the <item> element $my_title = $xmldoc->createElement('title',htmlspecialchars($item->get_title(),ENT_QUOTES)); $my_item->appendChild($my_title); - //give a child element <adlcp:prerequisite> to the <item> element - $my_prereqs = $xmldoc->createElement('adlcp:prerequisite',$item->get_prereq_string()); + //give a child element <adlcp:prerequisites> to the <item> element + $my_prereqs = $xmldoc->createElement('adlcp:prerequisites',$item->get_prereq_string()); $my_prereqs->setAttribute('type','aicc_script'); $my_item->appendChild($my_prereqs); //give a child element <adlcp:maxtimeallowed> to the <item> element - not yet supported @@ -7555,8 +7555,8 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') //give a child element <title> to the <item> element $my_title = $xmldoc->createElement('title',htmlspecialchars($item->get_title(),ENT_QUOTES)); $my_item->appendChild($my_title); - //give a child element <adlcp:prerequisite> to the <item> element - $my_prereqs = $xmldoc->createElement('adlcp:prerequisite',$item->get_prereq_string()); + //give a child element <adlcp:prerequisites> to the <item> element + $my_prereqs = $xmldoc->createElement('adlcp:prerequisites',$item->get_prereq_string()); $my_prereqs->setAttribute('type','aicc_script'); $my_item->appendChild($my_prereqs); //give a child element <adlcp:masteryscore> to the <item> element