aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-24 08:54:50 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-24 08:54:50 +0200
commit510f704bc82900c6408e55bf7240aec5d29b9f42 (patch)
tree50039d039db24e38aa5ed31769f2acec4d4f6961 /phpBB/includes/functions_posting.php
parent58b40945b0ec8b32f28e622186c99618b5e26f10 (diff)
parent84bbd4490e853f9dd971f9da56210c3801cb8205 (diff)
downloadforums-510f704bc82900c6408e55bf7240aec5d29b9f42.tar
forums-510f704bc82900c6408e55bf7240aec5d29b9f42.tar.gz
forums-510f704bc82900c6408e55bf7240aec5d29b9f42.tar.bz2
forums-510f704bc82900c6408e55bf7240aec5d29b9f42.tar.xz
forums-510f704bc82900c6408e55bf7240aec5d29b9f42.zip
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 2ba1ee7002..a1ace42c32 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -1552,7 +1552,14 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
return false;
}
- $current_time = time();
+ if (!empty($data['post_time']))
+ {
+ $current_time = $data['post_time'];
+ }
+ else
+ {
+ $current_time = time();
+ }
if ($mode == 'post')
{