aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorRMcGirr83 <rmcgirr83@gmail.com>2015-04-16 11:04:01 -0400
committerRichard McGirr <rmcgirr83@gmail.com>2015-04-21 06:11:13 -0400
commita53b57c8a2298ea04a45680cee00c5a9fec44689 (patch)
treee9a02af6867274abc86ce8d65f4ee334ac8d8a97 /phpBB/includes/functions_posting.php
parentc46024bfa20a4dbd39538bb4a55fe5f579bc40cf (diff)
downloadforums-a53b57c8a2298ea04a45680cee00c5a9fec44689.tar
forums-a53b57c8a2298ea04a45680cee00c5a9fec44689.tar.gz
forums-a53b57c8a2298ea04a45680cee00c5a9fec44689.tar.bz2
forums-a53b57c8a2298ea04a45680cee00c5a9fec44689.tar.xz
forums-a53b57c8a2298ea04a45680cee00c5a9fec44689.zip
[ticket/13759] Take post_time into account
PHPBB3-13759
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 a06d6f4c35..fdf09aab7f 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')
{