[pLog-svn] r3144 - plog/trunk/class/security

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Tue Mar 28 14:58:09 GMT 2006


Author: jondaley
Date: 2006-03-28 14:58:09 +0000 (Tue, 28 Mar 2006)
New Revision: 3144

Modified:
   plog/trunk/class/security/bayesianfilter.class.php
Log:
new parameter was added to UserComment apparently.  Also fixed spelling typo

Modified: plog/trunk/class/security/bayesianfilter.class.php
===================================================================
--- plog/trunk/class/security/bayesianfilter.class.php	2006-03-28 14:19:16 UTC (rev 3143)
+++ plog/trunk/class/security/bayesianfilter.class.php	2006-03-28 14:58:09 UTC (rev 3144)
@@ -51,7 +51,7 @@
             // get some info            
             $blogInfo = $this->_pipelineRequest->getBlogInfo();
             $request  = $this->_pipelineRequest->getHttpRequest();
-            $previoslyRejected = $this->_pipelineRequest->getRejectedState();
+            $previouslyRejected = $this->_pipelineRequest->getRejectedState();
             
             // we only have to filter the contents if the user is posting a comment 
             // or we're receiving a trackback
@@ -103,7 +103,7 @@
                 if( $config->getValue( "bayesian_filter_spam_comments_action" ) == BAYESIAN_FILTER_KEEP_COMMENT_ACTION ) {
                     $comments = new ArticleComments();
                     $clientIp = Client::getIp();
-                    $comment = new UserComment( $articleId, $parentId, $commentTopic, $commentText,
+                    $comment = new UserComment( $articleId, $blogInfo->getId(), $parentId, $commentTopic, $commentText,
                                                    null, $userName, $userEmail, $userUrl, $clientIp,
                                                    0, COMMENT_STATUS_SPAM );
                     // mark it as a trackback instead of a user comment...
@@ -127,7 +127,7 @@
                 $spam = false;
             }
             
-            if ( !$previoslyRejected )
+            if ( !$previouslyRejected )
             {
                 // train the filter with the message, be it spam or not...
 				include_once( PLOG_CLASS_PATH."class/bayesian/bayesianfiltercore.class.php" );				



More information about the pLog-svn mailing list