diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-06-24 08:54:45 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-06-24 08:54:45 +0200 |
commit | 84bbd4490e853f9dd971f9da56210c3801cb8205 (patch) | |
tree | e61f71c7d572b1f77252ecd23d09cf17e71a6fba | |
parent | 11e312f41c2b1d9dedce96874914d4dc4cf38efc (diff) | |
parent | a53b57c8a2298ea04a45680cee00c5a9fec44689 (diff) | |
download | forums-84bbd4490e853f9dd971f9da56210c3801cb8205.tar forums-84bbd4490e853f9dd971f9da56210c3801cb8205.tar.gz forums-84bbd4490e853f9dd971f9da56210c3801cb8205.tar.bz2 forums-84bbd4490e853f9dd971f9da56210c3801cb8205.tar.xz forums-84bbd4490e853f9dd971f9da56210c3801cb8205.zip |
Merge pull request #3538 from RMcGirr83/ticket/13759
[ticket/13759] Take post_time into account
-rw-r--r-- | phpBB/includes/functions_posting.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 56795a9a68..ca8baecff8 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1542,7 +1542,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') { |