diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 853d78f8cf3..9a3260a4dc3 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -6,12 +6,12 @@ require_once("../../config.php"); require_once("lib.php"); - $d = required_param('d',PARAM_INT); // Discussion ID - $parent = optional_param('parent',0,PARAM_INT); // If set, then display this post and all children. - $mode = optional_param('mode',0,PARAM_INT); // If set, changes the layout of the thread - $move = optional_param('move',0,PARAM_INT); // If set, moves this discussion to another forum - $mark = optional_param('mark',0,PARAM_INT); // Used for tracking read posts if user initiated. - $postid = optional_param('postid',0,PARAM_INT); // Used for tracking read posts if user initiated. + $d = required_param('d', PARAM_INT); // Discussion ID + $parent = optional_param('parent', 0, PARAM_INT); // If set, then display this post and all children. + $mode = optional_param('mode', 0, PARAM_INT); // If set, changes the layout of the thread + $move = optional_param('move', 0, PARAM_INT); // If set, moves this discussion to another forum + $mark = optional_param('mark', 0, PARAM_INT); // Used for tracking read posts if user initiated. + $postid = optional_param('postid', 0, PARAM_INT); // Used for tracking read posts if user initiated. if (! $discussion = get_record("forum_discussions", "id", $d)) { error("Discussion ID was incorrect or no longer exists"); @@ -214,7 +214,6 @@ notify(get_string("discussionmoved", "forum", format_string($forum->name,true))); } - /// Print the actual discussion forum_print_discussion($course, $forum, $discussion, $post, $displaymode, $canreply);