mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-30 05:09:07 +02:00
MINOR: merged r86573 into trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@86574 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7610ff46d2
commit
c20788e75a
@ -182,16 +182,9 @@ class PageCommentInterface extends RequestHandler {
|
|||||||
|
|
||||||
// Optional Spam Protection.
|
// Optional Spam Protection.
|
||||||
if(class_exists('SpamProtectorManager')) {
|
if(class_exists('SpamProtectorManager')) {
|
||||||
// Update the form to add the protecter field to it
|
SpamProtectorManager::update_form($form, null, array('Name', 'CommenterURL', 'Comment'));
|
||||||
$protecter = SpamProtectorManager::update_form($form);
|
|
||||||
if($protecter) {
|
|
||||||
$protecter->setFieldMapping('Name', 'Comment');
|
|
||||||
|
|
||||||
// Because most of the Spam Protection will need to query another service
|
|
||||||
// disable ajax commenting
|
|
||||||
self::set_use_ajax_commenting(false);
|
self::set_use_ajax_commenting(false);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Shall We use AJAX?
|
// Shall We use AJAX?
|
||||||
if(self::$use_ajax_commenting) {
|
if(self::$use_ajax_commenting) {
|
||||||
@ -205,7 +198,7 @@ class PageCommentInterface extends RequestHandler {
|
|||||||
$form->loadDataFrom(array(
|
$form->loadDataFrom(array(
|
||||||
"Name" => Cookie::get("PageCommentInterface_Name"),
|
"Name" => Cookie::get("PageCommentInterface_Name"),
|
||||||
"Comment" => Cookie::get("PageCommentInterface_Comment"),
|
"Comment" => Cookie::get("PageCommentInterface_Comment"),
|
||||||
"URL" => Cookie::get("PageCommentInterface_CommenterURL")
|
"CommenterURL" => Cookie::get("PageCommentInterface_CommenterURL")
|
||||||
));
|
));
|
||||||
|
|
||||||
return $form;
|
return $form;
|
||||||
|
Loading…
Reference in New Issue
Block a user