aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-24 08:54:45 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-24 08:54:45 +0200
commit84bbd4490e853f9dd971f9da56210c3801cb8205 (patch)
treee61f71c7d572b1f77252ecd23d09cf17e71a6fba
parent11e312f41c2b1d9dedce96874914d4dc4cf38efc (diff)
parenta53b57c8a2298ea04a45680cee00c5a9fec44689 (diff)
downloadforums-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.php9
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')
{