diff --git a/_config.php b/_config.php index e5899f8..4f364ab 100644 --- a/_config.php +++ b/_config.php @@ -9,10 +9,11 @@ * @package spamprotection */ -if(class_exists('Comment')) { - /** - * If the comments module is installed then add the spam protection module - * to the comments form via this extension - */ - CommentingController::add_extension('CommentSpamProtection'); -} \ No newline at end of file +/** + * If the comments module is installed then add the spam protection module + * to the comments form via this extension. + * + * Place this line in your mysite/_config.php + */ + +// CommentingController::add_extension('CommentSpamProtection'); \ No newline at end of file diff --git a/code/extensions/CommentSpamProtection.php b/code/extensions/CommentSpamProtection.php index a2225ce..a0c89bd 100644 --- a/code/extensions/CommentSpamProtection.php +++ b/code/extensions/CommentSpamProtection.php @@ -12,7 +12,7 @@ class CommentSpamProtection extends Extension { * Disable the AJAX commenting and update the form * with the {@link SpamProtectorField} which is enabled */ - function alterCommentForm(&$form) { + public function alterCommentForm(&$form) { SpamProtectorManager::update_form($form, null, array( 'Name' => 'author_name', 'CommenterURL' => 'author_url',