From fc511524418271bc6188fd72d3bd462831852f86 Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 27 Apr 2010 19:31:59 +0000 Subject: Storing references is pointless, since PhpBB doesn't keep any thread info. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6764 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/Bridge.php | 8 +++----- src/F2M.php | 3 +-- src/M2F.php | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/Bridge.php b/src/Bridge.php index 0125363..b428fff 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -71,16 +71,14 @@ class Bridge { return $rows; } - public function registerMessage($postId, $messageId, - $inReplyTo, $references) { + public function registerMessage($postId, $messageId, $inReplyTo) { throw_if_null($messageId); $sql = 'INSERT IGNORE INTO posts ' . - '(post_id, message_id, in_reply_to, refs) ' . + '(post_id, message_id, in_reply_to) ' . 'VALUES (' . ($postId === null ? 'NULL' : $postId) . ', ' . $this->db->quote($messageId) . ', ' - . $this->quote($inReplyTo) . ', ' - . $this->quote($references) . ')'; + . $this->quote($inReplyTo) . ')'; $count = $this->db->exec($sql); return $count == 1; diff --git a/src/F2M.php b/src/F2M.php index 445e047..95b26aa 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -178,8 +178,7 @@ EOF; # FIXME: edited messages break the bijection between post and message ids! # Register the message - $seen = !$bridge->registerMessage($postId, $messageId, - $inReplyTo, $references); + $seen = !$bridge->registerMessage($postId, $messageId, $inReplyTo); if ($seen) { throw new Exception('message id already seen: ' . $messageId); } diff --git a/src/M2F.php b/src/M2F.php index 1f66546..a8d2749 100644 --- a/src/M2F.php +++ b/src/M2F.php @@ -17,7 +17,7 @@ try { $rererences = $msg->getReferences(); $bridge = new Bridge(); - $seen = !$bridge->registerMessage(null, $messageId, $inReplyTo, $references); + $seen = !$bridge->registerMessage(null, $messageId, $inReplyTo); try { if ($seen) { -- cgit v1.2.3