Merge pull request #3 from robert-h-curry/master

Upgrade to module to make it 3.0 compatible.
This commit is contained in:
Ingo Schommer 2012-07-06 05:08:55 -07:00
commit fcfc80c63a
3 changed files with 5 additions and 3 deletions

View File

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

View File

@ -56,7 +56,9 @@ class SpamProtectorManager {
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 File

@ -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'.