aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-24 08:51:57 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-24 08:51:57 +0200
commit11e312f41c2b1d9dedce96874914d4dc4cf38efc (patch)
tree8ec0ebc8b6340a90353bf79c6121e419a17487a8 /phpBB/includes/functions_posting.php
parentd43da6cee93c9caff133edd754756db9550520da (diff)
parent77c2b2a51dfd429b7bac10d84017e4b2da321e30 (diff)
downloadforums-11e312f41c2b1d9dedce96874914d4dc4cf38efc.tar
forums-11e312f41c2b1d9dedce96874914d4dc4cf38efc.tar.gz
forums-11e312f41c2b1d9dedce96874914d4dc4cf38efc.tar.bz2
forums-11e312f41c2b1d9dedce96874914d4dc4cf38efc.tar.xz
forums-11e312f41c2b1d9dedce96874914d4dc4cf38efc.zip
Merge pull request #3528 from RMcGirr83/ticket/13598
[ticket/13598] Allow topic lock on topic creation
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 4f3b7ecfcf..56795a9a68 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1738,6 +1738,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
'topic_type' => $topic_type,
'topic_time_limit' => ($topic_type == POST_STICKY || $topic_type == POST_ANNOUNCE) ? ($data['topic_time_limit'] * 86400) : 0,
'topic_attachment' => (!empty($data['attachment_data'])) ? 1 : 0,
+ 'topic_status' => (isset($data['topic_status'])) ? $data['topic_status'] : ITEM_UNLOCKED,
);
if (isset($poll['poll_options']) && !empty($poll['poll_options']))