From 95e645d7d1db91411408b8414424b6fe9055d9f7 Mon Sep 17 00:00:00 2001 From: Moc Date: Wed, 17 Jun 2015 19:43:37 +0200 Subject: [PATCH] Forum plugin - Now correctly updates threadtype (sticky, announcement, normal) after updating OP --- e107_plugins/forum/forum_post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index cf771df97..8d47755d3 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -990,7 +990,8 @@ class forum_post_handler $postVals['post_edit_user'] = USERID; $postVals['post_entry'] = $_POST['post']; - $threadVals['thread_name'] = $_POST['subject']; + $threadVals['thread_name'] = $_POST['subject']; + $threadVals['thread_sticky'] = (MODERATOR ? (int)$_POST['threadtype'] : 0); $this->forumObj->threadUpdate($this->data['post_thread'], $threadVals); $this->forumObj->postUpdate($this->data['post_id'], $postVals);