mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
85901eeba7
commit
44e5b0a89a
@ -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();
|
||||
}
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user