diff --git a/_config.php b/_config.php index c772bab..e5899f8 100644 --- a/_config.php +++ b/_config.php @@ -14,5 +14,5 @@ if(class_exists('Comment')) { * If the comments module is installed then add the spam protection module * to the comments form via this extension */ - Object::add_extension('CommentingController', 'CommentSpamProtection'); + CommentingController::add_extension('CommentSpamProtection'); } \ No newline at end of file diff --git a/composer.json b/composer.json index bea8d3d..62b1cd8 100644 --- a/composer.json +++ b/composer.json @@ -9,9 +9,8 @@ }, { "name": "Will Rossiter", "email": "will@fullscreen.io" - } - ], + }], "require": { - "silverstripe/framework": "3.*" + "silverstripe/framework": "3.1.*" } } \ No newline at end of file