[svn r10264] fix a bug with new documents in LP

skala
Eric Marguin 20 years ago
parent 12e9614e70
commit 85c8e7ea45
  1. 15
      main/newscorm/kevin_lp_add_item.php
  2. 2
      main/newscorm/learnpath.class.php

@ -274,6 +274,21 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
break;
case TOOL_DOCUMENT:
//if(isset($_GET['file']) && (is_numeric($_GET['file'])) || $_GET['file'] == 'new')
//{
$msg = '<div class="lp_message" style="margin-bottom:10px;">';
$msg .= 'The new document has been created.';
$msg .= '</div>';
echo $_SESSION['oLP']->display_item($new_item_id, true, $msg);
//}
break;
}
}
else

@ -4420,7 +4420,7 @@ class learnpath {
$title = replace_dangerous_char($_POST['title']);
$filename = $title;
$content = $_POST['content'];
$content = $_POST['content_lp'];
$tmp_filename = $filename;

Loading…
Cancel
Save