1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Forum plugin - Allow changing the post type (normal, announcement, sticky) when editing the starting post

This commit is contained in:
Moc
2015-06-17 16:23:19 +02:00
parent fef68b788c
commit 24a82eaaef

View File

@@ -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']