From a97e278fd0e286ee806dcd9651f9f9346ea1f51f Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 5 Apr 2013 21:11:43 +1300 Subject: [PATCH] FIX: 3.1 extension API updates --- _config.php | 2 +- composer.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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