|
|
|
|
@ -7463,6 +7463,8 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') |
|
|
|
|
else |
|
|
|
|
{ // if the item is a quiz or a link or whatever non-exportable, we include a step indicating it |
|
|
|
|
|
|
|
|
|
if($item->type == TOOL_LINK) |
|
|
|
|
{ |
|
|
|
|
$my_item = $xmldoc->createElement('item'); |
|
|
|
|
$my_item->setAttribute('identifier','ITEM_'.$item->get_id()); |
|
|
|
|
$my_item->setAttribute('identifierref','RESOURCE_'.$item->get_id()); |
|
|
|
|
@ -7485,7 +7487,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') |
|
|
|
|
$my_item->appendChild($my_masteryscore); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//attach this item to the organization element or hits parent if there is one |
|
|
|
|
//attach this item to the organization element or its parent if there is one |
|
|
|
|
if(!empty($item->parent) && $item->parent!=0) |
|
|
|
|
{ |
|
|
|
|
$children = $organization->childNodes; |
|
|
|
|
@ -7506,8 +7508,6 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') |
|
|
|
|
$organization->appendChild($my_item); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if($item->type == TOOL_LINK) |
|
|
|
|
{ |
|
|
|
|
$my_file_path = 'link_'.$item->get_id().'.html'; |
|
|
|
|
$sql = 'SELECT url, title FROM '.Database :: get_course_table(TABLE_LINK).' WHERE id='.$item->path; |
|
|
|
|
$rs = api_sql_query($sql, __FILE__, __LINE__); |
|
|
|
|
|