mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
a9545bc842
The class "Comment" was actually defined by phing/filters/StripLineComments.php. Since I have installed phing globally through composer, its automatically in the include_path. That's a separate problem, but this is a viable workaround.
18 lines
459 B
PHP
18 lines
459 B
PHP
<?php
|
|
|
|
/**
|
|
* Default configuration settings for the Spam Protection module.
|
|
*
|
|
* You should not put your own configuration in here rather use your
|
|
* mysite/_config.php file
|
|
*
|
|
* @package spamprotection
|
|
*/
|
|
|
|
if(class_exists('CommentingController')) {
|
|
/**
|
|
* If the comments module is installed then add the spam protection module
|
|
* to the comments form via this extension
|
|
*/
|
|
Object::add_extension('CommentingController', 'CommentSpamProtection');
|
|
} |