From ad7f0e8d171afd20e51929a698dd27421e62dc6e Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Thu, 25 Jan 2007 14:30:51 +0100 Subject: [PATCH] [svn r10898] improve the student publication in lp --- main/newscorm/learnpath.class.php | 29 +++++----------------------- main/newscorm/resourcelinker.inc.php | 4 +--- 2 files changed, 6 insertions(+), 27 deletions(-) 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 .= '
Student Publications
'; + $return .= '
'.get_lang('Assignments').'
'; $return .= '
'; - - while($row_student = Database::fetch_array($res_student)) - { - $return .= '
'; - - $return .= ''; - $return .= '' . $row_student['title'] . ''; - - $return .= '
'; - } - - if(Database::num_rows($res_student) == 0) - $return .= '
No student publications available
'; - + $return .= '
'; + $return .= ''; + $return .= '' . get_lang('AddAssignmentPage') . ''; + $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;