From 24a82eaaef920e4b847f5231933ead878f4f29f0 Mon Sep 17 00:00:00 2001 From: Moc Date: Wed, 17 Jun 2015 16:23:19 +0200 Subject: [PATCH] Forum plugin - Allow changing the post type (normal, announcement, sticky) when editing the starting post --- e107_plugins/forum/shortcodes/batch/post_shortcodes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php index 168b9119b..ea67e8604 100644 --- a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php @@ -388,8 +388,8 @@ class plugin_forum_post_shortcodes extends e_shortcode function sc_postthreadas() { - - if (MODERATOR && $this->var['action'] == "nt") + // Show when creating new topic or when editing the original starting post (make sure post is not a reply) + if (MODERATOR && $this->var['action'] == "nt" || $this->var['thread_datestamp'] == $this->var['post_datestamp']) { $thread_sticky = (isset($_POST['threadtype']) ? $_POST['threadtype'] : vartrue($this->var['thread_sticky'],0)); // no reference of 'head' $threadInfo['head']['thread_sticky']