diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 21:52:09 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 21:52:09 +0000 |
commit | 3c20fc86780bb0a9bca8cadb8392c7824c2e4a13 (patch) | |
tree | eb421cd319d7b303e66f87d359a06790d5e4539d /src | |
parent | 41b8a6064edef1ad27b83324775ed16d38b297ee (diff) |
Pass time to build_message_id().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6689 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-rw-r--r-- | src/F2M.php | 6 | ||||
-rw-r--r-- | src/Util.php | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/F2M.php b/src/F2M.php index d65ec15..1846c7f 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -26,7 +26,10 @@ function send_to_lists($user, $data, $post_data) { $userEmail = $user->data['user_email']; $subject = $post_data['post_subject']; - $date = date(DATE_RFC2822, $phpbb->getPostTime($postId)); + $time = $phpbb->getPostTime($postId); + $date = date(DATE_RFC2822, $time); + +# $messageId = mbuild_message_id($time, $postId, $forumHost); $body = $data['message']; @@ -34,6 +37,7 @@ function send_to_lists($user, $data, $post_data) { var_dump($data); var_dump($post_data); var_dump($date); + var_dump($_SERVER); print '</p>'; /* diff --git a/src/Util.php b/src/Util.php index 62981b2..2384911 100644 --- a/src/Util.php +++ b/src/Util.php @@ -4,8 +4,8 @@ function throw_if_null($arg) { if ($arg === null) throw new Exception('argument is null'); } -function build_message_id($postId, $forumHost) { - return '<' . time() . ".bridge.$postId@$forumHost>"; +function build_message_id($time, $postId, $forumHost) { + return "<$time.$postId.bridge@$forumHost>"; } ?> |