mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch.
This commit is contained in:
parent
66035aafd9
commit
77dc6d0b26
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue