Browse files

Upgrade to be 3.0 compatible.

  • Loading branch information...
1 parent c70f270 commit 76051243e3d69f73bfb18643711fc9343ab1ed31 @robert-h-curry robert-h-curry committed Jul 6, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −1 README.md
  2. +3 −1 code/SpamProtectorManager.php
  3. +1 −1 docs/Install.md
View
2 README.md
@@ -10,7 +10,7 @@
## Requirements
-SilverStripe 2.3.2 or greater
+SilverStripe 3.0.0 or greater
## Documentation
View
4 code/SpamProtectorManager.php
@@ -56,7 +56,9 @@ static function update_form($form, $before = null, $fieldsToSpamServiceMapping =
try {
$protector = new $protectorClass();
- $field = $protector->getFormField("Captcha", $title, null, $form, $rightTitle);
+ $field = $protector->getFormField("Captcha", $title, null);
+ $field->setForm($form);
+ if ($rightTitle) $field->setRightTitle($rightTitle);
if($field) {
// update the mapping
View
2 docs/Install.md
@@ -3,7 +3,7 @@
## Install
1. Unzip this file (spamprotection-0.3.tar.gz) inside your SilverStripe installation directory.
-It should be at the same level as the 'cms' and 'sapphire' modules.
+It should be at the same level as the 'cms' and 'framework' modules.
2. Ensure the directory name for the module is 'spamprotection'.

0 comments on commit 7605124

Please sign in to comment.