From: vyshane Date: Mon, 25 Sep 2006 05:12:01 +0000 (+0000) Subject: Discussions from a forum of type 'single' should not be splittable. Merge from 1... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=77dc6d0b269075a56f764123ab6d23296b8aaa80;p=moodle.git Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch. --- diff --git a/mod/forum/post.php b/mod/forum/post.php index 812457a1e4..af28b03f0b 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -541,6 +541,9 @@ if (!$forum = get_record("forum", "id", $discussion->forum)) { error("The forum number was incorrect ($discussion->forum)"); } + if ($forum->type == 'single') { + error('Discussions from this forum cannot be split'); + } if (!$post->parent) { error('This is already the first post in the discussion'); }