Upgrade to be 3.0 compatible.

This commit is contained in:
Robert Curry 2012-07-06 14:43:38 +12:00
parent c70f270d86
commit 76051243e3
3 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@
## Requirements ## Requirements
SilverStripe 2.3.2 or greater SilverStripe 3.0.0 or greater
## Documentation ## Documentation

View File

@ -56,7 +56,9 @@ class SpamProtectorManager {
try { try {
$protector = new $protectorClass(); $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) { if($field) {
// update the mapping // update the mapping

View File

@ -3,7 +3,7 @@
## Install ## Install
1. Unzip this file (spamprotection-0.3.tar.gz) inside your SilverStripe installation directory. 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'. 2. Ensure the directory name for the module is 'spamprotection'.