mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #3 from robert-h-curry/master
Upgrade to module to make it 3.0 compatible.
This commit is contained in:
commit
fcfc80c63a
@ -10,7 +10,7 @@
|
||||
|
||||
## Requirements
|
||||
|
||||
SilverStripe 2.3.2 or greater
|
||||
SilverStripe 3.0.0 or greater
|
||||
|
||||
## Documentation
|
||||
|
||||
|
@ -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
|
||||
|
@ -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'.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user