From 85c8e7ea4500e2f7ac38da4c081d77127ea5d915 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Thu, 30 Nov 2006 11:17:14 +0100 Subject: [PATCH] [svn r10264] fix a bug with new documents in LP --- main/newscorm/kevin_lp_add_item.php | 15 +++++++++++++++ main/newscorm/learnpath.class.php | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) 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;