mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: check akismet is enabled before saving spam. PATCH via simon_w - #4812 (from r94568)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@95650 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
477dea3161
commit
1e2ea56e2d
@ -239,7 +239,7 @@ class PageComment_Controller extends Controller {
|
||||
}
|
||||
}
|
||||
if(Director::is_ajax()) {
|
||||
if(SSAkismet::getSaveSpam()) {
|
||||
if(SSAkismet::isEnabled() && SSAkismet::getSaveSpam()) {
|
||||
echo $comment->renderWith('PageCommentInterface_singlecomment');
|
||||
} else {
|
||||
echo '';
|
||||
|
Loading…
Reference in New Issue
Block a user