Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch.

This commit is contained in:
vyshane 2006-09-25 05:12:01 +00:00
parent 66035aafd9
commit 77dc6d0b26

View file

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