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:
Sean Harvey 2009-12-16 05:59:23 +00:00
parent 477dea3161
commit 1e2ea56e2d

View File

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