From 0db2c84dbbe9a1db9b5fd8b684eb71d9c8a26397 Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 31 Oct 2010 21:43:23 +0000 Subject: $logger is a member. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7433 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/MailmanToPhpBB3.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/MailmanToPhpBB3.php') 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. -- cgit v1.2.3