mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
BUGFIX instantiate protector class for check to work
This commit is contained in:
parent
59ef9b376d
commit
3c1c9f943a
@ -47,6 +47,7 @@ class SpamProtectorManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$protectorClass) return null;
|
if(!$protectorClass) return null;
|
||||||
|
$protector = new $protectorClass();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$check = $protector->updateForm($form, $before, $fieldsToSpamServiceMapping);
|
$check = $protector->updateForm($form, $before, $fieldsToSpamServiceMapping);
|
||||||
|
Loading…
Reference in New Issue
Block a user