diff --git a/main/newscorm/kevin_lp_add_item.php b/main/newscorm/kevin_lp_add_item.php index 5780a1f5d2..cf58cdef69 100644 --- a/main/newscorm/kevin_lp_add_item.php +++ b/main/newscorm/kevin_lp_add_item.php @@ -274,6 +274,21 @@ echo ''; break; + case TOOL_DOCUMENT: + + //if(isset($_GET['file']) && (is_numeric($_GET['file'])) || $_GET['file'] == 'new') + //{ + $msg = '
'; + + $msg .= 'The new document has been created.'; + + $msg .= '
'; + + echo $_SESSION['oLP']->display_item($new_item_id, true, $msg); + //} + + break; + } } else diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 0ccdb9b562..691fbf92f3 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -4420,7 +4420,7 @@ class learnpath { $title = replace_dangerous_char($_POST['title']); $filename = $title; - $content = $_POST['content']; + $content = $_POST['content_lp']; $tmp_filename = $filename;