Merged parameter fixes from STABLE

This commit is contained in:
moodler 2005-12-05 04:36:25 +00:00
parent fc64d5cf2c
commit c992ff85c2

View File

@ -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);