summaryrefslogtreecommitdiff
path: root/src/Bridge.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-10 14:36:56 +0000
committeruckelman <uckelman@nomic.net>2010-04-10 14:36:56 +0000
commit6100be95b7de486dc07bcb5a2ccd58a62d01a9f6 (patch)
treeeeb77a8965fcc6bd586ddd2af2a5b7e3531d5011 /src/Bridge.php
parent27677e5f97454022d5418ad454aec1df3461f475 (diff)
Fixed registerMessage().
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6636 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/Bridge.php')
-rw-r--r--src/Bridge.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Bridge.php b/src/Bridge.php
index 98667ed..ad3b6c3 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -28,19 +28,19 @@ class Bridge {
return $row['message_id'];
}
- public function registerMessage($msg, $parentId) {
+ public function registerMessage($postId, $messageId, $inReplyTo, $refs) {
$sql = 'INSERT INTO posts ' .
'(post_id, message_id, in_reply_to, refs) ' .
- 'VALUES (' . $msg->getPostId() . ', '
- . $this->db->quote($msg->getMessageId()) . ', '
- . $this->db->quote() . ', '
- . $this->db->quote($msg->getReferences()) . ')';
+ 'VALUES (' . $postId . ', '
+ . $this->db->quote($messageId) . ', '
+ . $this->db->quote($inReplyTo) . ', '
+ . $this->db->quote($refs) . ')';
$count = $this->db->exec($sql);
if ($count != 1) {
trigger_error(
- 'Failed to register message: ' . $msg->getMessageId(), E_USER_ERROR
+ 'Failed to register message: ' . $messageId, E_USER_ERROR
);
}
}