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
This commit is contained in:
Will Rossiter 2009-06-04 23:40:27 +00:00 committed by Sam Minnee
parent 85901eeba7
commit 44e5b0a89a
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}

View File

@ -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');