From 83a305a7e75561e5c760d5080e9ceeb2c3be961a Mon Sep 17 00:00:00 2001 From: defacer Date: Tue, 8 Feb 2005 01:34:14 +0000 Subject: [PATCH] Renaming some $course to $courseid to make it clear to anyone reading the code... --- mod/forum/lib.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e5cb516856..e8e2b27e34 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2805,7 +2805,7 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can /// Add the forum id to the argument list, for use in 'forum_print_post'. /// Add the user_read_array to the argument list. -function forum_print_posts_flat($discussion, $course, $direction, $ratings, $reply, &$user_read_array, $forumid=0) { +function forum_print_posts_flat($discussion, $courseid, $direction, $ratings, $reply, &$user_read_array, $forumid=0) { global $USER, $CFG; $link = false; @@ -2828,7 +2828,7 @@ function forum_print_posts_flat($discussion, $course, $direction, $ratings, $rep } $ownpost = ($USER->id == $post->userid); - if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings, + if (forum_print_post($post, $courseid, $ownpost, $reply, $link, $ratings, '', '', (isset($user_read_array[$post->id]) || forum_tp_is_post_old($post)))) { $ratingsmenuused = true; } @@ -2840,7 +2840,7 @@ function forum_print_posts_flat($discussion, $course, $direction, $ratings, $rep /// Add the forum id to the argument list, for use in 'forum_print_post'. /// Add the user_read_array to the argument list. -function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply, &$user_read_array, $forumid=0) { +function forum_print_posts_threaded($parent, $courseid, $depth, $ratings, $reply, &$user_read_array, $forumid=0) { global $USER, $CFG; $link = false; @@ -2859,13 +2859,13 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply, $post->forum = 0; } - if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings, + if (forum_print_post($post, $courseid, $ownpost, $reply, $link, $ratings, '', '', (isset($user_read_array[$post->id]) || forum_tp_is_post_old($post)))) { $ratingsmenuused = true; } echo "
"; } else { - $by->name = fullname($post, isteacher($course)); + $by->name = fullname($post, isteacher($courseid)); $by->date = userdate($post->modified); if ($CFG->forum_trackreadposts) { @@ -2883,7 +2883,7 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply, echo ""; } - if (forum_print_posts_threaded($post->id, $course, $depth-1, $ratings, $reply, + if (forum_print_posts_threaded($post->id, $courseid, $depth-1, $ratings, $reply, $user_read_array, $forumid)) { $ratingsmenuused = true; } @@ -2895,7 +2895,7 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply, /// Add the forum id to the argument list, for use in 'forum_print_post'. /// Add the user_read_array to the argument list. -function forum_print_posts_nested($parent, $course, $ratings, $reply, &$user_read_array, $forumid=0) { +function forum_print_posts_nested($parent, $courseid, $ratings, $reply, &$user_read_array, $forumid=0) { global $USER, $CFG; $link = false; @@ -2918,12 +2918,12 @@ function forum_print_posts_nested($parent, $course, $ratings, $reply, &$user_rea $post->forum = 0; } - if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings, + if (forum_print_post($post, $courseid, $ownpost, $reply, $link, $ratings, '', '', (isset($user_read_array[$post->id]) || forum_tp_is_post_old($post)))) { $ratingsmenuused = true; } echo "
"; - if (forum_print_posts_nested($post->id, $course, $ratings, $reply, $user_read_array, $forumid)) { + if (forum_print_posts_nested($post->id, $courseid, $ratings, $reply, $user_read_array, $forumid)) { $ratingsmenuused = true; } echo "\n"; -- 2.39.5