Преглед на файлове

Removed notice, added param to function, added comment about function duplication

ywarnier преди 14 години
родител
ревизия
3f34591354
променени са 2 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      main/dropbox/dropbox_functions.inc.php
  2. 3 3
      main/work/work.lib.php

+ 1 - 1
main/dropbox/dropbox_functions.inc.php

@@ -911,7 +911,7 @@ function store_add_dropbox() {
 *
 * @see this is the same function as in the new forum, so this probably has to move to a user library.
 *
-* @todo move this function to the user library
+* @todo move this function to the user library (there is a duplicate in work.lib.php)
 *
 * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
 * @version march 2006

+ 3 - 3
main/work/work.lib.php

@@ -203,12 +203,12 @@ function display_studentsdelete_form() {
 *
 * @see this is the same function as in the new forum, so this probably has to move to a user library.
 *
-* @todo move this function to the user library
+* @todo move this function to the user library (remove duplicate in dropbox_functions.inc.php)
 *
 * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
 * @version march 2006
 */
-function display_user_link_work($user_id, $name = '') {
+function display_user_link_work($user_id, $name = '', $gradebook='') {
 	global $_otherusers;
 	$user_id = intval($user_id);
 
@@ -828,7 +828,7 @@ function display_student_publications_list($work_dir, $sub_course_dir, $currentC
 
 				$row[] = '<a href="download.php?file='.$url.'">'.build_document_icon_tag('file', substr(basename($work->url), 13)).'</a>';
 				$row[] = '<a href="download.php?file='.$url.'"'.$class.'>'.Display::return_icon('save.png', get_lang('Save'),array('style' => 'float:right;'), 22).' '.$work->title.'</a><br />'.$work->description;
-				$row[] = display_user_link_work($row2['insert_user_id'], $work->author); // $work->author;
+				$row[] = display_user_link_work($row2['insert_user_id'], $work->author, $gradebook); // $work->author;
 				$row[] = $qualification_string;
 			
 				$work_sent_date_local = api_get_local_time($work->sent_date);