diff options
author | uckelman <uckelman@nomic.net> | 2010-10-31 21:43:23 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-10-31 21:43:23 +0000 |
commit | 0db2c84dbbe9a1db9b5fd8b684eb71d9c8a26397 (patch) | |
tree | fe90b831502c37af419770b9b038387c933c51a5 /src/MailmanToPhpBB3.php | |
parent | a467a3c455b1078de6076121886837d103ce41be (diff) |
$logger is a member.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7433 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/MailmanToPhpBB3.php')
-rw-r--r-- | src/MailmanToPhpBB3.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/MailmanToPhpBB3.php b/src/MailmanToPhpBB3.php index b4ef325..291126e 100644 --- a/src/MailmanToPhpBB3.php +++ b/src/MailmanToPhpBB3.php @@ -43,13 +43,13 @@ class MailmanToPhpBB3 { $rererences = $msg->getReferences(); $soruce = $msg->getSource(); - $logger->info($messageId . ' received from ' . $source); + $this->logger->info($messageId . ' received from ' . $source); $editId = $this->bridge->registerByMessageId($messageId, $inReplyTo); if ($editId === false) { # This message has already been processed, bail out - $logger->info($messageId . ' already seen, skipping'); + $this->logger->info($messageId . ' already seen, skipping'); exit; } @@ -74,7 +74,7 @@ class MailmanToPhpBB3 { $topicId = $ids['topic_id']; $postType = 'reply'; - $logger->info($messageId . ' replies to ' . $parentId); + $this->logger->info($messageId . ' replies to ' . $parentId); } else { # A message starting a new topic, post to default forum for its source @@ -85,17 +85,17 @@ class MailmanToPhpBB3 { $postType = 'post'; - $logger->info($messageId . ' is a new post'); + $this->logger->info($messageId . ' is a new post'); } - $logger->info( + $this->logger->info( $messageId . ' will be posted to ' . $forumId . ':' . $topicId); # Post the message to the forum $postId = $this->phpbb->postMessage($postType, $forumId, $topicId, $msg); $this->bridge->setPostId($messageId, $postId); - $logger->info($messageId . ' posted as ' . $postId); + $this->logger->info($messageId . ' posted as ' . $postId); } catch (Exception $e) { # Bridging failed, unregister message. |