From 1c841b25e138fc284931216bfeb934fe72a633b6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 4 Apr 2013 15:31:00 +0300 Subject: [PATCH 2/4] Create composer.json --- composer.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..590cb94 --- /dev/null +++ b/composer.json @@ -0,0 +1,17 @@ +{ + "name": "silverstripe/spamprotection", + "description": "Spam protection module for SilverStripe.", + "type": "silverstripe-module", + "keywords": ["silverstripe", "spamprotection"], + "authors": [{ + "name": "Saophalkun Ponlu", + "email": "phalkunz@silverstripe.com" + }, { + "name": "Will Rossiter", + "email": "will@fullscreen.io" + } + ], + "require": { + "silverstripe/framework": "~2.3" + } +} From 74b799005821cc601eb4f5927eb822858249b848 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 5 Apr 2013 21:19:05 +1300 Subject: [PATCH 3/4] Branch 1.0 for 3.0.* compatibility --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bea8d3d..92afc5d 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,6 @@ } ], "require": { - "silverstripe/framework": "3.*" + "silverstripe/framework": "3.0.*" } } \ No newline at end of file From a9545bc842fe8f25aef33cc7cd2748011f940692 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 29 Dec 2013 12:01:53 +0100 Subject: [PATCH 4/4] More accurate class_exists() check 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. --- _config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.php b/_config.php index c772bab..b6f9e5f 100644 --- a/_config.php +++ b/_config.php @@ -9,7 +9,7 @@ * @package spamprotection */ -if(class_exists('Comment')) { +if(class_exists('CommentingController')) { /** * If the comments module is installed then add the spam protection module * to the comments form via this extension