From 709c441e891ac07ecabaea2f412c9b62eadb08b9 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 18 Apr 2013 16:58:29 +0800 Subject: [PATCH] MDL-39192 mod_forum: do not need to check the posting threshold when editing a post --- mod/forum/post.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index c2bbbfe128d..da5d789e22f 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -864,7 +864,10 @@ if ($forum->type == 'qanda' echo $OUTPUT->notification(get_string('qandanotify','forum')); } -forum_check_throttling($forum, $cm); +// If we are not editing a post we need to check the posting threshold. +if (!$edit) { + forum_check_throttling($forum, $cm); +} if (!empty($parent)) { if (! $discussion = $DB->get_record('forum_discussions', array('id' => $parent->discussion))) {