[svn r11251] Fix a display bug when addig a forum or a forum thread

skala
Julian Prud'homme 18 years ago
parent b092ec1ff4
commit dc0c341e54
  1. 41
      main/newscorm/kevin_lp_add_item.php
  2. 2
      main/newscorm/learnpath.class.php

@ -283,17 +283,38 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
case TOOL_DOCUMENT:
$msg = '<div class="lp_message" style="margin-bottom:10px;">';
$msg .= get_lang("NewDocumentCreated");
$msg .= '</div>';
echo $_SESSION['oLP']->display_item($new_item_id, true, $msg);
break;
case TOOL_FORUM:
echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
echo '<div class="lp_message" style="margin:3px 10px;">';
echo get_lang("NewForumCreated");
echo '</div>';
break;
//if(isset($_GET['file']) && (is_numeric($_GET['file'])) || $_GET['file'] == 'new')
//{
$msg = '<div class="lp_message" style="margin-bottom:10px;">';
$msg .= get_lang("NewDocumentCreated");
$msg .= '</div>';
echo $_SESSION['oLP']->display_item($new_item_id, true, $msg);
//}
case 'thread':
echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
echo '<div class="lp_message" style="margin:3px 10px;">';
echo get_lang("NewThreadCreated");
echo '</div>';
break;

@ -6034,7 +6034,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
unset($this->arrMenu);
if($action == 'add')
$return .= '<p class="lp_title">'.get_lang("student_publication").' :</p>' . "\n";
$return .= '<p class="lp_title">'.get_lang("Student_publication").' :</p>' . "\n";
elseif($action == 'move')
$return .= '<p class="lp_title">'.get_lang("MoveCurrentStudentPublication").' :</p>' . "\n";
else

Loading…
Cancel
Save