From 44e5b0a89aed25bc54f7224f4245a6f9c7f7e195 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 4 Jun 2009 23:40:27 +0000 Subject: [PATCH] BUGFIX: fixed spelling of spam protector git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@78452 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 8 ++++---- code/sitefeatures/PageCommentInterface.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index 4d54e5de..44653c54 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -209,8 +209,8 @@ class PageComment_Controller extends Controller { if(Permission::check('CMS_ACCESS_CMSMain')) { // if spam protection module exists - if(class_exists('SpamProtecterManager')) { - SpamProtecterManager::send_feedback($comment, 'spam'); + if(class_exists('SpamProtectorManager')) { + SpamProtectorManager::send_feedback($comment, 'spam'); $comment->setField('IsSpam', true); $comment->write(); } @@ -252,8 +252,8 @@ class PageComment_Controller extends Controller { if(Permission::check('CMS_ACCESS_CMSMain')) { // if spam protection module exists - if(class_exists('SpamProtecterManager')) { - SpamProtecterManager::send_feedback($comment, 'ham'); + if(class_exists('SpamProtectorManager')) { + SpamProtectorManager::send_feedback($comment, 'ham'); $comment->setField('IsSpam', false); $comment->write(); } diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index aab59ffc..d8ddf892 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -157,9 +157,9 @@ class PageCommentInterface extends RequestHandler { $form->setRedirectToFormOnValidationError(true); // Optional Spam Protection. - if(class_exists('SpamProtecterManager')) { + if(class_exists('SpamProtectorManager')) { // Update the form to add the protecter field to it - $protecter = SpamProtecterManager::update_form($form); + $protecter = SpamProtectorManager::update_form($form); if($protecter) { $protecter->setFieldMapping('Name', 'Comment');