Skip to content

Loading…

API Updated to support SpamProtector API tweak #17

Merged
merged 1 commit into from

2 participants

@tractorcow

This update is necessary to support the proposed API tweaks at silverstripe/silverstripe-spamprotection#11

It's safe to pull this at any time since it's just a stub, but let's hold off until @wilr has had a chance to test and approve these changes.

@tractorcow tractorcow referenced this pull request in silverstripe/silverstripe-spamprotection
Merged

API Refactor field mapping into SpamProtector / UserForms extension #11

@chillu chillu merged commit ef8eb26 into silverstripe:master
@tractorcow

Also thanks @chillu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 18, 2014
  1. @tractorcow
Showing with 7 additions and 2 deletions.
  1. +7 −2 code/MathSpamProtector.php
View
9 code/MathSpamProtector.php
@@ -14,5 +14,10 @@ class MathSpamProtector implements SpamProtector {
public function getFormField($name = null, $title = null, $value = null) {
return new MathSpamProtectorField($name, $title, $value);
}
-
-}
+
+ /**
+ * Not used by MathSpamProtector
+ */
+ public function setFieldMapping($fieldMapping) {}
+
+}
Something went wrong with that request. Please try again.