From c19da569e752698be4720fea6ef6bde76625a7b7 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 18 Dec 2007 20:47:47 +0100 Subject: [PATCH] [svn r14020] Remove useless parameter to display_course_icons() --- main/auth/courses.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main/auth/courses.php b/main/auth/courses.php index 918cf0534e..4876a45f90 100644 --- a/main/auth/courses.php +++ b/main/auth/courses.php @@ -1,4 +1,4 @@ -\n"; //if ($parameter=="sorting") //{ - display_course_icons($key, $number_of_courses, $course, $user_courses); + display_course_icons($key, $number_of_courses, $course); //} // displaying the delete icon when we are unsubscribing from courses //if($parameter=="deleting") @@ -880,7 +880,7 @@ function display_subscribe_icon($current_course, $user_coursecodes) } /** - * displays the subscribe icon if the subscribing is allowed and if the user is not yet + * Displays the subscribe icon if the subscribing is allowed and if the user is not yet * subscribed to this course * @author Patrick Cool , Ghent University * @param $key: @@ -890,13 +890,13 @@ function display_subscribe_icon($current_course, $user_coursecodes) * @return html a small table containing the up/down icons and the edit icon (for moving to a different user course category) * @todo complete the comments on this function: the parameter section */ -function display_course_icons($key, $number_of_courses, $course, $user_courses) +function display_course_icons($key, $number_of_courses, $course) { //print_r($course); global $safe,$charset; echo ""; echo "
"; // the up icon - if ($key>0 AND $user_courses[$key-1]['user_course_category']==$course['user_course_category']) + if ($key>0) { echo ""; Display::display_icon('up.gif', get_lang('Up')); @@ -932,7 +932,7 @@ function display_course_icons($key, $number_of_courses, $course, $user_courses) } echo "
"; - if ($key<$number_of_courses-1 AND $user_courses[$key+1]['user_course_category']==$course['user_course_category']) + if ($key<$number_of_courses-1) { echo ""; Display::display_icon('down.gif', get_lang('Down'));