diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php
index 91c0c12e3c..d13d6917af 100644
--- a/main/newscorm/learnpath.class.php
+++ b/main/newscorm/learnpath.class.php
@@ -5988,12 +5988,10 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
$row = Database::fetch_array($result);
$item_title = $row['title'];
- $item_description = $row['description'];
}
else
{
$item_title = '';
- $item_description = '';
}
$return = '
';
@@ -6121,13 +6119,6 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
$return .= "\t\t\t" . '
| ' . "\n";
$return .= "\t\t" . '' . "\n";
-
- $return .= "\t\t" . '
' . "\n";
-
- $return .= "\t\t\t" . ' | ' . "\n";
- $return .= "\t\t\t" . ' | ' . "\n";
-
- $return .= "\t\t" . '
' . "\n";
}
$return .= "\t\t" . '
' . "\n";
@@ -6729,22 +6720,12 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
ORDER BY title ASC";
$res_student = api_sql_query($sql_student, __FILE__, __LINE__);
- $return .= '';
+ $return .= '';
$return .= '';
-
- while($row_student = Database::fetch_array($res_student))
- {
- $return .= '
';
- }
-
- if(Database::num_rows($res_student) == 0)
- $return .= '
No student publications available
';
-
+ $return .= '
';
$return .= '
';
return $return;
diff --git a/main/newscorm/resourcelinker.inc.php b/main/newscorm/resourcelinker.inc.php
index 106e1e23e7..f2ec2e61a5 100644
--- a/main/newscorm/resourcelinker.inc.php
+++ b/main/newscorm/resourcelinker.inc.php
@@ -1942,9 +1942,7 @@ function rl_get_resource_link_for_learnpath($course_code, $learnpath_id, $id_in_
$link .= $main_dir_path.'user/user.php?origin='.$origin;
break;
case 'student_publication' :
- include_once '../work/work.lib.php';
- $path = get_work_path(1);
- $link .= $main_course_path.$path;
+ $link .= $main_dir_path.'work/work.php?origin=learnpath';
break;
}//end switch
return $link;